From 5ad6430ebe534c07ead70fb20ef2ec7effd98b11 Mon Sep 17 00:00:00 2001 From: zhangzhanwei Date: Fri, 3 Apr 2026 15:52:46 +0800 Subject: [PATCH] fix: Image to video node error --- ui/src/workflow/nodes/image-to-video/index.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ui/src/workflow/nodes/image-to-video/index.vue b/ui/src/workflow/nodes/image-to-video/index.vue index cbb51a7313d..2a1051413dd 100644 --- a/ui/src/workflow/nodes/image-to-video/index.vue +++ b/ui/src/workflow/nodes/image-to-video/index.vue @@ -69,7 +69,7 @@ * {{ $t('workflow.nodes.imageToVideoGenerate.last_frame.label') }} { const props = defineProps<{ nodeModel: any }>() const modelOptions = ref(null) const AIModeParamSettingDialogRef = ref>() -const nodeCascaderRef = ref() const aiChatNodeFormRef = ref() +const firstFrameCascaderRef = ref() +const lastFrameCascaderRef = ref() +const modelReferenceCascaderRef = ref() + const validate = () => { return Promise.all([ - nodeCascaderRef.value ? nodeCascaderRef.value.validate() : Promise.resolve(''), + firstFrameCascaderRef.value?.validate() ?? Promise.resolve(''), + modelReferenceCascaderRef.value?.validate() ?? Promise.resolve(''), aiChatNodeFormRef.value?.validate(), ]).catch((err: any) => { return Promise.reject({ node: props.nodeModel, errMessage: err })