+ {{ props.description }} +
++ {{ providerText(event) }} +
++ {{ event.message }} +
++ {{ props.description }} +
++ {{ getProviderEventText(event) }} +
++ {{ event.message }} +
+{{ assetGuidance }}
+| null>(null) const totalPages = computed(() => storybook.value?.pages.length || 0) const isCover = computed(() => currentPageIndex.value === -1) @@ -83,6 +86,7 @@ const currentStoryId = computed(() => { const parsed = Number(normalized) return Number.isFinite(parsed) ? parsed : null }) +const storybookTraceId = computed(() => storybook.value?.id ?? currentStoryId.value) function goHome() { store.clearStorybook() @@ -122,6 +126,7 @@ async function loadStorybook() { if (cachedStorybook?.id === storyId) { loading.value = false + await generationTraceRef.value?.refresh() return } @@ -150,6 +155,7 @@ async function loadStorybook() { last_error: detail.last_error, retryable_assets: detail.retryable_assets, }) + await generationTraceRef.value?.refresh() } catch (e) { error.value = e instanceof Error ? e.message : '绘本加载失败' } finally { @@ -186,6 +192,7 @@ async function retryStorybookImages() { last_error: detail.last_error, retryable_assets: detail.retryable_assets, }) + await generationTraceRef.value?.refresh() } catch (e) { error.value = e instanceof Error ? e.message : '插图补全失败' await loadStorybook().catch(() => undefined) @@ -394,6 +401,17 @@ watch( 读完了,再来一本