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() {
>