fix(接口自动化): 加载环境配置

This commit is contained in:
shiziyuan9527 2021-03-08 16:27:23 +08:00
parent 64fd20803b
commit d250f6c49d
1 changed files with 6 additions and 4 deletions

View File

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