fix: 同步首帧预览生成参数
This commit is contained in:
1 parent
9ad9af468b
commit
ddd5b4b4da
1 file changed
+4
-1
@@ -84,7 +84,10 @@ async function loadPreview() {
|
|||||||
previewPending.value = true
|
previewPending.value = true
|
||||||
previewError.value = ''
|
previewError.value = ''
|
||||||
try {
|
try {
|
||||||
const result = await productionApi.previewKeyframe(props.shotId)
|
const result = await productionApi.previewKeyframe(props.shotId, {
|
||||||
|
provider: imageProvider.value || undefined,
|
||||||
|
generationOptions: imageGenerationOptions.value
|
||||||
|
})
|
||||||
if (!result || result.shotId !== props.shotId) throw new Error('预览结果与当前镜头不匹配。')
|
if (!result || result.shotId !== props.shotId) throw new Error('预览结果与当前镜头不匹配。')
|
||||||
preview.value = result
|
preview.value = result
|
||||||
} catch (cause) {
|
} catch (cause) {
|
||||||
|
|||||||
Reference in new issue
Block a user