From a6abadd490637923fbff853816200baec042ad73 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 13 Sep 2021 15:40:51 +0800 Subject: [PATCH] =?UTF-8?q?fix=20(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E4=BF=AE=E5=A4=8D=E5=BC=95=E7=94=A8=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E8=A2=AB=E4=BF=AE=E5=A4=8D=E5=90=8E=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E4=B8=8D=E6=88=90=E5=8A=9F=E9=97=AE=E9=A2=98=20--bug=3D1006431?= =?UTF-8?q?=20--user=3D=E8=B5=B5=E5=8B=87=20=E3=80=90github#5963=E3=80=91?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E7=9A=84...=20https://www.tapd.cn/55049933/s?= =?UTF-8?q?/1045957?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/api/automation/scenario/EditApiScenario.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 77c8ca7532..5108b0bb65 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -1177,15 +1177,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;