From de41ba9f33ca634b2404468b6ebc049f2c03275c Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 29 Nov 2022 18:37:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=8D=E5=88=B6=E7=9A=84=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=E4=B8=AD=E5=BC=95=E7=94=A8=E7=9A=84case=E6=9C=89=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E6=93=8D=E4=BD=9C=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1020393 --user=王孝刚 [接口测试]场景A中复制场景B,场景B中引用的case有时候能编辑有时候不能。 https://www.tapd.cn/55049933/s/1307855 --- .../automation/scenario/common/ApiBaseComponent.vue | 8 ++++---- .../scenario/component/ApiScenarioComponent.vue | 13 +++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/api-test/frontend/src/business/automation/scenario/common/ApiBaseComponent.vue b/api-test/frontend/src/business/automation/scenario/common/ApiBaseComponent.vue index e042d699eb..3401df0e35 100644 --- a/api-test/frontend/src/business/automation/scenario/common/ApiBaseComponent.vue +++ b/api-test/frontend/src/business/automation/scenario/common/ApiBaseComponent.vue @@ -91,7 +91,7 @@ circle @click="copyRow" style="padding: 5px" - :disabled="(data.disabled && !data.root) || !showVersion || isDeleted" /> + :disabled="(data.disabled && !data.root && !data.isCopy) || !showVersion || isDeleted" /> + :disabled="(data.disabled && !data.root && !data.isCopy) || !showVersion || isDeleted" /> 0) { + this.recursiveCopy(arr[i].hashTree); + } + } + }, calcProjectId(projectId, parentId) { if (!projectId) { return parentId ? parentId : getCurrentProjectID();