fix: 为镜头提示词缺少首帧提供操作指引

This commit is contained in:
GouJ committed 2026-09-23 09:29:24 +08:00
1 parent 0ce9ae00e7
commit de26dd0c19
8 files changed
+149 -19

No files matched your search

@@ -80,6 +80,9 @@ const linkedShotMissing = computed(
query.data.value &&
!shots.value.some(item => item.shotId === selectedShot.value)
)
const openRequestedKeyframe = computed(
() => queryText(route?.query.action) === 'keyframe' && queryText(route?.query.shotId) === shot.value?.shotId
)
const staleVideos = computed(() => query.data.value?.videos.stalePrimaryVideo ?? 0)
const stages = computed(() => {
const data = query.data.value
@@ -694,6 +697,7 @@ const videoRules = { videoLimit: integerRule('本批镜头上限'), videoRepairA
:prompt-readiness="promptItem"
:keyframe-readiness="keyframeItem"
:video-readiness="videoItem"
:open-keyframe="openRequestedKeyframe"
:disabled="blocked || !!linkedShotMissing"
@changed="refreshProject"
/>
@@ -37,6 +37,7 @@ const props = defineProps<{
promptReadiness?: PromptReadinessItem
keyframeReadiness?: KeyframeReadinessItem
videoReadiness?: VideoReadinessItem
openKeyframe?: boolean
disabled: boolean
}>()
const emit = defineEmits<{ changed: [] }>()
@@ -63,6 +64,13 @@ const activeVideo = computed(() => videos.value.find(isActiveVideo))
const operation = computed(() => getOperation(props.projectId))
const assetBlocked = computed(() => props.disabled || operation.value.pending || !!query.error.value)
const keyframeOpen = ref(false)
watch(
() => props.openKeyframe,
requested => {
if (requested) keyframeOpen.value = true
},
{ immediate: true }
)
const qualityOpen = ref(false)
const qualityTarget = ref<QualityTarget | null>(null)
const specsOpen = ref(false)