diff --git a/src/features/production/components/ShotProductionAssets.vue b/src/features/production/components/ShotProductionAssets.vue index e31ec50..bc05891 100644 --- a/src/features/production/components/ShotProductionAssets.vue +++ b/src/features/production/components/ShotProductionAssets.vue @@ -69,6 +69,11 @@ const query = usePolling( }, false ) +/** 单独读取已保存的提示词,查询失败不影响首帧和视频资产展示。 */ +const promptQuery = usePolling(key, (shotId, signal) => storyboardApi.videoPrompt(shotId, signal), false) +const savedPrompt = computed(() => + promptQuery.data.value?.shotId === key.value ? promptQuery.data.value : null +) const keyframes = computed(() => query.data.value?.keyframes ?? []) const videos = computed(() => query.data.value?.videos ?? []) const videoQualityStatus = computed(() => query.data.value?.qualityStatus ?? null) @@ -153,7 +158,7 @@ function safeVideoUrl(value: string | null): string | null { /** 重新读取单镜头资产,并通知父页刷新项目就绪状态。 */ async function refreshAll() { - await query.refresh() + await Promise.all([query.refresh(), promptQuery.refresh()]) emit('changed') } @@ -315,6 +320,29 @@ async function inspectSpecs() { {{ issueLabel(issue.code) }}:{{ issue.reason }} +
本镜视频提示词
+{{ savedPrompt.videoPrompt }}
+ +负向提示词
++ {{ savedPrompt.negativePrompt }} +
+ ++ 此提示词已过期,请重新生成后再制作视频。 +
++ 正在读取视频提示词… +
++ 尚未生成本镜视频提示词。 +
+