From 0b5cc9c7ef679a7d437b4ae5d94f0858cd710645 Mon Sep 17 00:00:00 2001 From: GouJ Date: Sat, 10 Oct 2026 13:41:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=86=E9=A2=91=E7=94=9F=E6=88=90?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E4=BD=BF=E7=94=A8=E4=B8=BB=E9=A6=96=E5=B8=A7?= =?UTF-8?q?=E6=8C=81=E4=B9=85=E5=8C=96=E8=B4=A8=E9=87=8F=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E9=97=A8=E7=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ShotProductionAssets.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/features/production/components/ShotProductionAssets.vue b/src/features/production/components/ShotProductionAssets.vue index c4b5b30..00f7ad0 100644 --- a/src/features/production/components/ShotProductionAssets.vue +++ b/src/features/production/components/ShotProductionAssets.vue @@ -240,9 +240,23 @@ const canGenerateVideo = computed( !!props.videoReadiness && props.videoReadiness.issues.length === 0 && /** 真正的视频质量门仍由后端编译器执行,前端不以易过期的会话结果代替持久化状态。 */ - !!currentKeyframe.value + !!currentKeyframe.value && + !primaryQualityBlocked.value ) const keyframeStale = computed(() => !!props.keyframeReadiness?.primaryKeyframeStale) +/** 当前主首帧的持久化质量状态,避免会话缓存与按钮状态冲突。 */ +const primaryQualityKey = computed(() => currentKeyframe.value + ? JSON.stringify([props.shot.shotId, currentKeyframe.value.id, reviewRevision.value]) + : '') +const primaryQualityQuery = useQuery(primaryQualityKey, (value, signal) => { + if (!value) return Promise.resolve(null) + const [shotId, keyframeId] = JSON.parse(value) as [string, string, number] + return qualityApi.keyframeQualityReview(shotId, keyframeId, signal) +}) +const primaryQualityBlocked = computed(() => { + const status = primaryQualityQuery.data.value?.effectiveQualityStatus + return !status || status === 'failed' || status === 'needs_review' || status === 'unknown' +}) const reviewRevision = ref(0) /** 审核后强制更新每张卡片的数据库质量状态。 */ async function refreshAfterReview() {