From f698493396fd243f85c83338eec5fd0bfe7413f9 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Tue, 22 Jun 2021 15:40:10 +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=9C=BA=E6=99=AF=E6=AD=A5=E9=AA=A4=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E5=90=8E=20=E5=90=AF=E7=94=A8/=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E5=8D=95=E6=AD=A5=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=8F=B0=E6=97=A5=E5=BF=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/api/automation/report/ApiReportDetail.vue | 5 +++-- .../components/api/automation/scenario/EditApiScenario.vue | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/automation/report/ApiReportDetail.vue b/frontend/src/business/components/api/automation/report/ApiReportDetail.vue index 1a6695b44a..bfa7299ad9 100644 --- a/frontend/src/business/components/api/automation/report/ApiReportDetail.vue +++ b/frontend/src/business/components/api/automation/report/ApiReportDetail.vue @@ -106,6 +106,7 @@ export default { res.scenarios.forEach(item => { if (item && item.requestResults) { item.requestResults.forEach(req => { + req.responseResult.console = res.console; resMap.set(req.id + req.name, req); req.name = item.name + "^@~@^" + req.name + "UUID=" + getUUID(); array.push(req); @@ -168,7 +169,7 @@ export default { if (scenarioArr.length > 1) { let childArr = scenarioArr[0].split("_"); childId = childArr[0]; - if(childArr.length > 1){ + if (childArr.length > 1) { childName = childArr[1]; } } @@ -177,7 +178,7 @@ export default { idIsPath = true; } else if (scenarioId === childId) { idIsPath = true; - } else if(scenarioName !== childName){ + } else if (scenarioName !== childName) { //如果两个名字不匹配则默认通过,不匹配ID idIsPath = true; } diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index d248f42bd7..4937b5e69d 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -1008,6 +1008,7 @@ export default { }, getApiScenario() { this.loading = true; + this.stepEnable = true; if (this.currentScenario.tags != undefined && this.currentScenario.tags && !(this.currentScenario.tags instanceof Array)) { this.currentScenario.tags = JSON.parse(this.currentScenario.tags); }