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')