From ad95ffaf0ba699795294a650824578cc941136c2 Mon Sep 17 00:00:00 2001
From: GouJ
Date: Sat, 26 Sep 2026 21:41:47 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=A7=E6=9C=AC=E5=AE=8C=E6=88=90?=
=?UTF-8?q?=E5=90=8E=E5=90=8C=E6=AD=A5=E5=88=B6=E4=BD=9C=E9=98=B6=E6=AE=B5?=
=?UTF-8?q?=E5=B9=B6=E4=BC=98=E5=8C=96=E6=96=87=E6=A1=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/features/create-drama/CreateDramaPage.vue | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
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' ? '剧本仍在生成,请等待状态更新。' : '如中途停止,可从当前阶段继续。'
}}