fix(接口测试): 修复场景步骤刷新后 启用/禁用问题,单步控制台日志问题

This commit is contained in:
fit2-zhao 2021-06-22 15:40:10 +08:00 committed by fit2-zhao
parent 8e7438be44
commit f698493396
2 changed files with 4 additions and 2 deletions

View File

@ -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;
}

View File

@ -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);
}