fix(接口自动化): 加载环境配置
This commit is contained in:
parent
64fd20803b
commit
d250f6c49d
|
@ -1001,10 +1001,12 @@
|
|||
},
|
||||
initProjectIds() {
|
||||
// 加载环境配置
|
||||
this.projectIds.clear();
|
||||
this.scenarioDefinition.forEach(data=>{
|
||||
let arr = jsonPath.query(data, "$..projectId");
|
||||
arr.forEach(a => this.projectIds.add(a));
|
||||
this.$nextTick(() => {
|
||||
this.projectIds.clear();
|
||||
this.scenarioDefinition.forEach(data=>{
|
||||
let arr = jsonPath.query(data, "$..projectId");
|
||||
arr.forEach(a => this.projectIds.add(a));
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue