From bf09e44dd582c004ce7fdf55194a2f6f2ae37e8f Mon Sep 17 00:00:00 2001 From: GouJ Date: Thu, 15 Oct 2026 18:11:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=A7=E6=9C=AC=E5=88=9B=E4=BD=9C?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=B1=95=E7=A4=BA=E6=95=B4=E5=89=A7=E6=97=B6?= =?UTF-8?q?=E9=95=BF=E6=A8=A1=E5=BC=8F=E4=B8=8E=E7=9B=AE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/create-drama/CreateDramaPage.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/features/create-drama/CreateDramaPage.vue b/src/features/create-drama/CreateDramaPage.vue index 6bc7b3b..c8fcd38 100644 --- a/src/features/create-drama/CreateDramaPage.vue +++ b/src/features/create-drama/CreateDramaPage.vue @@ -21,7 +21,9 @@ const tab = ref('episodes') const dramaRecords = computed(() => workflowCheckpoints(checkpoints.value, 'create-drama')) const state = computed(() => dramaRecords.value.at(-1)?.state) const episodes = computed(() => project.value?.episodes ?? []) -const total = computed(() => state.value?.episodeCount) +const total = computed(() => project.value?.episodeCount ?? state.value?.episodeCount) +/** 整剧目标时长仅作展示,不影响生成状态。 */ +const targetMinutes = computed(() => project.value?.targetDurationSeconds == null ? null : Math.round(project.value.targetDurationSeconds / 60)) const projectId = computed(() => project.value?.id ?? '') const operation = computed(() => getOperation(projectId.value)) const backgroundExecution = useWorkflowExecution(projectId, 'create-drama') @@ -96,6 +98,11 @@ function exportScript() { +
+ 计划 {{ total ?? '—' }} 集 + 时长规划:{{ project.durationMode === 'auto' ? '自动' : project.durationMode === 'fixed_episode_count' ? '固定集数' : '弹性集数' }} + 整剧目标约 {{ targetMinutes }} 分钟 +