fix(接口自动化): 初始化时未加载环境配置

This commit is contained in:
shiziyuan9527 2021-03-04 10:40:04 +08:00
parent 18d6322636
commit c8ef224935
1 changed files with 2 additions and 0 deletions

View File

@ -919,6 +919,7 @@
}
this.enableCookieShare = obj.enableCookieShare;
this.scenarioDefinition = obj.hashTree;
this.initProjectIds();
}
}
if (this.currentScenario.copy) {
@ -999,6 +1000,7 @@
this.reload();
},
initProjectIds() {
//
this.projectIds.clear();
this.scenarioDefinition.forEach(data=>{
let arr = jsonPath.query(data, "$..projectId");