fix(接口自动化): 初始化时未加载环境配置
This commit is contained in:
parent
18d6322636
commit
c8ef224935
|
@ -919,6 +919,7 @@
|
||||||
}
|
}
|
||||||
this.enableCookieShare = obj.enableCookieShare;
|
this.enableCookieShare = obj.enableCookieShare;
|
||||||
this.scenarioDefinition = obj.hashTree;
|
this.scenarioDefinition = obj.hashTree;
|
||||||
|
this.initProjectIds();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.currentScenario.copy) {
|
if (this.currentScenario.copy) {
|
||||||
|
@ -999,6 +1000,7 @@
|
||||||
this.reload();
|
this.reload();
|
||||||
},
|
},
|
||||||
initProjectIds() {
|
initProjectIds() {
|
||||||
|
// 加载环境配置
|
||||||
this.projectIds.clear();
|
this.projectIds.clear();
|
||||||
this.scenarioDefinition.forEach(data=>{
|
this.scenarioDefinition.forEach(data=>{
|
||||||
let arr = jsonPath.query(data, "$..projectId");
|
let arr = jsonPath.query(data, "$..projectId");
|
||||||
|
|
Loading…
Reference in New Issue