fix(接口测试): 修复场景步骤刷新后 启用/禁用问题,单步控制台日志问题
This commit is contained in:
parent
8e7438be44
commit
f698493396
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue