From 71911c6b1c6655a7b48718fa9eb98199266b6912 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Fri, 5 Dec 2025 11:53:29 +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 --- .../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 868b7c761f3..53fbd36a325 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 7b26e1891cc..4231d8ec4b4 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) }