fix(short-drama-agent-front): 修复图片重复提交与首帧恢复
This commit is contained in:
1 parent
b88ad8770f
commit
ecb0423153
8 files changed
+508
-85
No files matched your search
@@ -33,6 +33,8 @@ const props = defineProps<{
|
||||
direction?: ShotDirection | null
|
||||
/** 当前镜头的正式画面即时状态。 */
|
||||
visualState?: ShotVisualState | null
|
||||
/** 提交前已有候选,用于区分下载恢复与历史候选。 */
|
||||
previousCandidateIds?: readonly string[]
|
||||
/** 仅发送已经确认的当前快照。 */
|
||||
submitGeneration: (input: GenerateKeyframeInput) => Promise<ImageGenerationSubmission>
|
||||
}>()
|
||||
@@ -73,6 +75,7 @@ const {
|
||||
} = useImageGenerationPreview({
|
||||
open,
|
||||
recoveryTarget: () => (props.shotId ? 'keyframe:' + props.shotId : ''),
|
||||
previousCandidateIds: () => props.previousCandidateIds,
|
||||
target: () => JSON.stringify([props.shotId, props.direction, props.visualState]),
|
||||
input: () => generationInput.value,
|
||||
disabled: () => props.disabled || !imageProvider.value,
|
||||
|
||||
Reference in new issue
Block a user