diff --git a/src/features/storyboard/components/ShotTools.vue b/src/features/storyboard/components/ShotTools.vue index 8e57225..41c1d7d 100644 --- a/src/features/storyboard/components/ShotTools.vue +++ b/src/features/storyboard/components/ShotTools.vue @@ -35,9 +35,16 @@ function reset() { busy.value = { references: false, spec: false } } watch(() => JSON.stringify([props.projectId, props.shot.shotId, props.shot.direction, props.shot.visualState]), reset) +watch( + () => [props.projectId, props.shot.shotId] as const, + () => { + void load('references') + }, + { immediate: true } +) onScopeDispose(reset) -/** 只在用户点击后读取参考图或编译规格;两种 GET 均不调用生成模型。 */ +/** 参考图进入镜头时自动读取;生成规格仍由用户显式编译,两种 GET 均不调用生成模型。 */ async function load(kind: 'references' | 'spec') { if (busy.value[kind] || locked.value || (kind === 'spec' && (!props.shot.direction || !props.shot.visualState))) return @@ -108,13 +115,11 @@ function exportResult(kind: 'spec' | 'prompt') {
- 读取镜头已绑定形态的图片,不生成新图。参考图缺失会影响视频提示词生成。 + 自动读取镜头当前绑定形态的主参考图,不生成新图。切换镜头会同步刷新,参考图缺失会影响后续生成。