diff --git a/ui/src/workflow/nodes/image-understand/index.vue b/ui/src/workflow/nodes/image-understand/index.vue index 40f23847c..f2a5e70d9 100644 --- a/ui/src/workflow/nodes/image-understand/index.vue +++ b/ui/src/workflow/nodes/image-understand/index.vue @@ -221,8 +221,12 @@ const providerOptions = ref>([]) const AIModeParamSettingDialogRef = ref>() const aiChatNodeFormRef = ref() +const nodeCascaderRef = ref() const validate = () => { - return aiChatNodeFormRef.value?.validate().catch((err) => { + return Promise.all([ + nodeCascaderRef.value ? nodeCascaderRef.value.validate() : Promise.resolve(''), + aiChatNodeFormRef.value?.validate() + ]).catch((err: any) => { return Promise.reject({ node: props.nodeModel, errMessage: err }) }) }