From f97fae1a30662a29ff1965c99a8770f134248fc8 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Tue, 18 Jan 2022 17:33:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E6=AD=A5=E9=AA=A4=E7=A7=BB=E5=8A=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1008168 --user=赵勇 【接口自动化】-自定义请求不能添加条件控制器,但是场景外的条件控制器可以拖动到该请求中 https://www.tapd.cn/55049933/s/1093509 --- .../components/api/automation/scenario/EditApiScenario.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index d7018efbe8..dab7f45602 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -1299,7 +1299,10 @@ export default { if (draggingNode.data.disabled && draggingNode.parent && draggingNode.parent.data && draggingNode.parent.data.disabled) { return false; } - return true; + if (draggingNode && dropNode && draggingNode.level >= dropNode.level) { + return true; + } + return false; } else if (dropType === "inner" && dropNode.data.referenced !== 'REF' && dropNode.data.referenced !== 'Deleted' && (this.stepFilter.get(dropNode.data.type) && this.stepFilter.get(dropNode.data.type).indexOf(draggingNode.data.type) != -1)) { return true;