diff --git a/src/features/create-drama/CreateDramaPage.vue b/src/features/create-drama/CreateDramaPage.vue index 7d7fe02..45dd7ae 100644 --- a/src/features/create-drama/CreateDramaPage.vue +++ b/src/features/create-drama/CreateDramaPage.vue @@ -17,7 +17,7 @@ import { useWorkflowExecution } from '../workflows/execution' import WorkflowExecutionPanel from '../workflows/WorkflowExecutionPanel.vue' /** 剧本创作工作区,正式数据库内容为准,checkpoint 只补充计划与恢复信息。 */ -const { project, checkpoints, refresh, error } = useProjectContext() +const { project, checkpoints, refresh, refreshStageReadiness, error } = useProjectContext() const tab = ref('episodes') const showHistory = ref(false) const dramaRecords = computed(() => workflowCheckpoints(checkpoints.value, 'create-drama')) @@ -30,7 +30,8 @@ const backgroundExecution = useWorkflowExecution(projectId, 'create-drama') watch( () => backgroundExecution.query.data.value?.status, (status, previous) => { - if ((status === 'completed' || status === 'failed') && status !== previous) void refresh() + if ((status === 'completed' || status === 'failed') && status !== previous) + void Promise.all([refresh(), refreshStageReadiness()]) } ) const complete = computed(() => project.value?.status === 'completed') @@ -99,7 +100,7 @@ function exportScript() { > / {{ total }} 集 · 等待计划集数。{{ - project?.status === 'generating' ? '生成状态来自后端,请等待下一次更新。' : '可按中断阶段继续处理。' + project?.status === 'generating' ? '剧本仍在生成,请等待状态更新。' : '如中途停止,可从当前阶段继续。' }}