parent
38c1807e77
commit
8a0fb45b4a
|
@ -276,16 +276,17 @@ export default {
|
||||||
showApiPopover() {
|
showApiPopover() {
|
||||||
let currentProjectID = getCurrentProjectID();
|
let currentProjectID = getCurrentProjectID();
|
||||||
this.projectIds.clear();
|
this.projectIds.clear();
|
||||||
|
this.projectIds.add(currentProjectID);
|
||||||
getApiCaseEnvironments(this.runCaseIds).then((res) => {
|
getApiCaseEnvironments(this.runCaseIds).then((res) => {
|
||||||
let data = res.data;
|
let data = res.data;
|
||||||
if (data) {
|
if (data) {
|
||||||
this.caseIdEnvNameMap = data;
|
this.caseIdEnvNameMap = data;
|
||||||
this.projectIds.add(currentProjectID);
|
|
||||||
}
|
}
|
||||||
this.$refs.envSelectPopover.open();
|
this.$refs.envSelectPopover.open();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
showScenarioPopover() {
|
showScenarioPopover() {
|
||||||
|
let currentProjectID = getCurrentProjectID();
|
||||||
this.projectIds.clear();
|
this.projectIds.clear();
|
||||||
apiScenarioEnvMap(this.request).then(res => {
|
apiScenarioEnvMap(this.request).then(res => {
|
||||||
let data = res.data;
|
let data = res.data;
|
||||||
|
@ -295,6 +296,9 @@ export default {
|
||||||
this.projectIds.add(d);
|
this.projectIds.add(d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (this.projectIds.size===0){
|
||||||
|
this.projectIds.add(currentProjectID);
|
||||||
|
}
|
||||||
this.$refs.envSelectPopover.open();
|
this.$refs.envSelectPopover.open();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue