From 94af9e45bdf1d985bcd04b865e992e0c1beb12e7 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Fri, 5 Dec 2025 11:59:27 +0800 Subject: [PATCH] fix: When adding a new node, the default execution condition is' all ', which often results in errors. Adjust it to default to any (#4443) --- .../workflow-dropdown-menu/knowledge-inner/index.vue | 3 +++ ui/src/components/workflow-dropdown-menu/knowledge/index.vue | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/src/components/workflow-dropdown-menu/knowledge-inner/index.vue b/ui/src/components/workflow-dropdown-menu/knowledge-inner/index.vue index 868b7c761..53fbd36a3 100644 --- a/ui/src/components/workflow-dropdown-menu/knowledge-inner/index.vue +++ b/ui/src/components/workflow-dropdown-menu/knowledge-inner/index.vue @@ -177,6 +177,7 @@ function clickNodes(item: any, data?: any) { })), } } + item['properties']['condition'] = 'OR' props.workflowRef?.addNode(item) emit('clickNodes', item) @@ -188,6 +189,7 @@ function onmousedown(item: any, data?: any) { if (data.tool_type == 'DATA_SOURCE') { item['properties'].kind = WorkflowKind.DataSource } + item['properties']['node_data'] = { ...data, tool_lib_id: data.id, @@ -197,6 +199,7 @@ function onmousedown(item: any, data?: any) { })), } } + item['properties']['condition'] = 'OR' props.workflowRef?.onmousedown(item) emit('onmousedown', item) } diff --git a/ui/src/components/workflow-dropdown-menu/knowledge/index.vue b/ui/src/components/workflow-dropdown-menu/knowledge/index.vue index 7b26e1891..4231d8ec4 100644 --- a/ui/src/components/workflow-dropdown-menu/knowledge/index.vue +++ b/ui/src/components/workflow-dropdown-menu/knowledge/index.vue @@ -199,8 +199,8 @@ function clickNodes(item: any, data?: any) { })), } } + item['properties']['condition'] = 'OR' props.workflowRef?.addNode(item) - emit('clickNodes', item) } @@ -219,6 +219,7 @@ function onmousedown(item: any, data?: any) { })), } } + item['properties']['condition'] = 'OR' props.workflowRef?.onmousedown(item) emit('onmousedown', item) }