From 483538a4310f65bc46ba296aba353222789e3016 Mon Sep 17 00:00:00 2001
From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com>
Date: Thu, 9 Oct 2025 17:15:12 +0800
Subject: [PATCH] fix: Loop node, MCP node cannot be dragged and added (#4159)
---
ui/src/workflow/index.vue | 2 +-
ui/src/workflow/nodes/loop-node/index.vue | 4 ++-
ui/src/workflow/nodes/mcp-node/index.vue | 33 ++++++++++++-----------
3 files changed, 22 insertions(+), 17 deletions(-)
diff --git a/ui/src/workflow/index.vue b/ui/src/workflow/index.vue
index 2ae4639f1..e78fd5282 100644
--- a/ui/src/workflow/index.vue
+++ b/ui/src/workflow/index.vue
@@ -67,7 +67,6 @@ const renderGraphData = (data?: any) => {
},
isSilentMode: false,
container: container,
- saa: 'sssssss',
})
lf.value.setTheme({
bezier: {
@@ -129,6 +128,7 @@ const onmousedown = (shapeItem: ShapeItem) => {
properties: { ...shapeItem.properties },
})
}
+
if (shapeItem.callback) {
shapeItem.callback(lf.value)
}
diff --git a/ui/src/workflow/nodes/loop-node/index.vue b/ui/src/workflow/nodes/loop-node/index.vue
index 89f3dc3ff..d05896e7f 100644
--- a/ui/src/workflow/nodes/loop-node/index.vue
+++ b/ui/src/workflow/nodes/loop-node/index.vue
@@ -170,7 +170,9 @@ onMounted(() => {
}
}
set(props.nodeModel, 'validate', validate)
- mountLoopBodyNode()
+ if (!props.nodeModel.virtual) {
+ mountLoopBodyNode()
+ }
})
diff --git a/ui/src/workflow/nodes/mcp-node/index.vue b/ui/src/workflow/nodes/mcp-node/index.vue
index 3f88b101d..df4eb2e0f 100644
--- a/ui/src/workflow/nodes/mcp-node/index.vue
+++ b/ui/src/workflow/nodes/mcp-node/index.vue
@@ -246,8 +246,8 @@
+
-