From a70e27b9c04563ad84e2b6c04ae4d1782e911d6b Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 5 Dec 2025 11:05:06 +0800 Subject: [PATCH] feat: add additional nodeCascaderRefs for enhanced validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1064068 --user=刘瑞斌 【工作流知识库】文档分段节点高级分段时,分段长度、自动清洗选项切换参数引用方式会互相影响 https://www.tapd.cn/62980211/s/1806124 --- ui/src/workflow/nodes/document-split-node/index.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/src/workflow/nodes/document-split-node/index.vue b/ui/src/workflow/nodes/document-split-node/index.vue index 91e91232e..5622cf418 100644 --- a/ui/src/workflow/nodes/document-split-node/index.vue +++ b/ui/src/workflow/nodes/document-split-node/index.vue @@ -335,12 +335,18 @@ const aiChatNodeFormRef = ref() const nodeCascaderRef = ref() const nodeCascaderRef2 = ref() const nodeCascaderRef3 = ref() +const nodeCascaderRef4 = ref() +const nodeCascaderRef5 = ref() +const nodeCascaderRef6 = ref() const validate = () => { return Promise.all([ nodeCascaderRef.value ? nodeCascaderRef.value.validate() : Promise.resolve(''), nodeCascaderRef2.value ? nodeCascaderRef2.value.validate() : Promise.resolve(''), nodeCascaderRef3.value ? nodeCascaderRef3.value.validate() : Promise.resolve(''), + nodeCascaderRef4.value ? nodeCascaderRef4.value.validate() : Promise.resolve(''), + nodeCascaderRef5.value ? nodeCascaderRef5.value.validate() : Promise.resolve(''), + nodeCascaderRef6.value ? nodeCascaderRef6.value.validate() : Promise.resolve(''), aiChatNodeFormRef.value?.validate(), ]).catch((err: any) => { return Promise.reject({ node: props.nodeModel, errMessage: err })