From 081b493b43ded34b7960345f9bf57f69e9d6edd3 Mon Sep 17 00:00:00 2001 From: GouJ Date: Thu, 15 Oct 2026 18:14:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=89=A7=E6=9C=AC?= =?UTF-8?q?=E6=97=B6=E9=95=BF=E5=B1=95=E7=A4=BA=E7=9A=84=20ESLint=20?= =?UTF-8?q?=E4=B8=A5=E6=A0=BC=E7=9B=B8=E7=AD=89=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/create-drama/CreateDramaPage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/create-drama/CreateDramaPage.vue b/src/features/create-drama/CreateDramaPage.vue index c8fcd38..233311f 100644 --- a/src/features/create-drama/CreateDramaPage.vue +++ b/src/features/create-drama/CreateDramaPage.vue @@ -23,7 +23,7 @@ const state = computed(() => dramaRecords.value.at(-1)?.state) const episodes = computed(() => project.value?.episodes ?? []) const total = computed(() => project.value?.episodeCount ?? state.value?.episodeCount) /** 整剧目标时长仅作展示,不影响生成状态。 */ -const targetMinutes = computed(() => project.value?.targetDurationSeconds == null ? null : Math.round(project.value.targetDurationSeconds / 60)) +const targetMinutes = computed(() => project.value?.targetDurationSeconds === null || project.value?.targetDurationSeconds === undefined ? 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')