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 () => {