Commit ec0a5099 authored by fit2-zhao's avatar fit2-zhao
Browse files

fix (接口自动化): 修复引用场景被修复后执行不成功问题

--bug=1006431 --user=赵勇 【github#5963】引用的... https://www.tapd.cn/55049933/s/1045957
parent b62b369f
Showing with 5 additions and 2 deletions
+5 -2
......@@ -1110,15 +1110,18 @@ export default {
this.getEnvironments();
},
allowDrop(draggingNode, dropNode, dropType) {
if(dropNode.data.disabled){
return false;
}
if (dropType != "inner" && !draggingNode.data.disabled) {
if (draggingNode.data.referenced) {
if (draggingNode.data.referenced !== 'REF' && draggingNode.data.referenced !== 'Deleted' && !draggingNode.data.disabled) {
if (draggingNode.data.referenced !== 'REF' && draggingNode.data.referenced !== 'Deleted') {
return true;
}
return false;
}
return true;
} else if (dropType === "inner" && ELEMENTS.get(dropNode.data.type).indexOf(draggingNode.data.type) != -1 && !dropNode.data.disabled) {
} else if (dropType === "inner" && ELEMENTS.get(dropNode.data.type).indexOf(draggingNode.data.type) != -1) {
if (dropNode.data.referenced) {
if (dropNode.data.referenced !== 'REF' && dropNode.data.referenced !== 'Deleted') {
return true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment