From d5ea2aaa98af6549c9214e4fab55e80465a013be Mon Sep 17 00:00:00 2001 From: GouJ Date: Tue, 1 Sep 2026 15:54:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=9F=E4=BA=A7=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E8=BF=87=E6=9C=9F=E4=B8=BB=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/production/useProduction.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/features/production/useProduction.ts b/src/features/production/useProduction.ts index 70543e3..7c147d6 100644 --- a/src/features/production/useProduction.ts +++ b/src/features/production/useProduction.ts @@ -84,6 +84,7 @@ export function useProduction() { const target = getProductionSession(projectId) target.receipt = null const staleKeyframes = query.data.value?.keyframes.stalePrimaryKeyframe ?? 0 + const staleVideos = query.data.value?.videos.stalePrimaryVideo ?? 0 const labels: Record = { prompts: force.value ? '重生成项目视频提示词' : '补齐项目视频提示词', keyframes: force.value @@ -91,7 +92,11 @@ export function useProduction() { : staleKeyframes > 0 ? `更新 ${staleKeyframes} 个过期主首帧` : `补齐第 ${episodeNo.value} 集主首帧`, - videos: force.value ? '新增项目视频候选' : '提交就绪视频任务', + videos: force.value + ? '新增项目视频候选' + : staleVideos > 0 + ? `更新 ${staleVideos} 个过期主视频` + : '提交就绪视频任务', 'retry-videos': '重试失败视频任务' } await runOperation(projectId, labels[command], async () => {