fix: 限制currentloop节点智能拖拽到循环节点中

This commit is contained in:
zhanghao 2026-03-18 10:41:23 +08:00
parent 67bccc88fa
commit 0cf40092bd

View File

@ -211,7 +211,7 @@ const dragover = (e) => {
const drop = (e) => {
let node = e.dataTransfer.getData("flowNode");
node = JSON.parse(node);
if (["stopLoop", "subEnd", "subStart", "current"].includes(node.type)) {
if (["stopLoop", "subEnd", "subStart", "currentLoop"].includes(node.type)) {
ElMessage.warning("此节点只能拖拽到循环节点的循环体中");
return;
}