From 8f27fedcfe869de791575255a108b4e06069fe2a Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Tue, 16 Nov 2021 12:37:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(=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=A8case=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E5=90=8C=E6=AD=A5=E9=97=AE=E9=A2=98=20--bug=3D1007941?= =?UTF-8?q?=20--user=3D=E8=B5=B5=E5=8B=87=20=E3=80=90Github=E3=80=911.14.1?= =?UTF-8?q?=E7=89=88=E6=9C=AC=EF=BC=8C=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E5=9C=BA=E6=99=AF=E5=BC=95=E7=94=A8=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=EF=BC=8C=E7=84=B6=E5=90=8E?= =?UTF-8?q?=E5=9C=A8=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E9=87=8C=E7=9A=84=E5=8F=82=E6=95=B0=EF=BC=8C?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8C=96=E5=9C=BA=E6=99=AF=E9=87=8C=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E6=AD=A4=E7=94=A8=E4=BE=8B=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E8=A2=AB=E4=BF=AE=E6=94=B9=EF=BC=8C=E8=BF=98=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E6=89=8B=E5=8A=A8=E5=88=B0=E5=9C=BA=E6=99=AF=E9=87=8C=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E4=BF=AE=E6=94=B9=20#7726=20https://www.tapd.cn/55049?= =?UTF-8?q?933/s/1068081?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/automation/scenario/component/ApiComponent.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue index 48b57851cc..91fc113050 100644 --- a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue @@ -374,6 +374,11 @@ export default { let enable = this.request.enable; this.$get("/api/testcase/get/" + this.request.id, response => { if (response.data) { + let hashTree = []; + if (this.request.hashTree) { + hashTree = JSON.parse(JSON.stringify(this.request.hashTree)); + } + Object.assign(this.request, JSON.parse(response.data.request)); this.request.name = response.data.name; this.request.referenced = "REF"; this.request.enable = enable; @@ -395,6 +400,7 @@ export default { this.request.projectId = response.data.projectId; let req = JSON.parse(response.data.request); if (req && this.request) { + this.request.hashTree = hashTree; this.mergeHashTree(req.hashTree); } this.reload();