fix: 限制currentloop节点智能拖拽到循环节点中
This commit is contained in:
parent
67bccc88fa
commit
0cf40092bd
@ -211,7 +211,7 @@ const dragover = (e) => {
|
|||||||
const drop = (e) => {
|
const drop = (e) => {
|
||||||
let node = e.dataTransfer.getData("flowNode");
|
let node = e.dataTransfer.getData("flowNode");
|
||||||
node = JSON.parse(node);
|
node = JSON.parse(node);
|
||||||
if (["stopLoop", "subEnd", "subStart", "current"].includes(node.type)) {
|
if (["stopLoop", "subEnd", "subStart", "currentLoop"].includes(node.type)) {
|
||||||
ElMessage.warning("此节点只能拖拽到循环节点的循环体中");
|
ElMessage.warning("此节点只能拖拽到循环节点的循环体中");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user