fix(接口定义): 修复执行环境缺失问题
This commit is contained in:
parent
6254ed1fea
commit
36acba4121
|
@ -1 +1 @@
|
|||
Subproject commit f514243111c3acb317e80da23857143857a53566
|
||||
Subproject commit 905ca8af61ce966d26109e9c5c8c0aee3ca1324e
|
|
@ -104,10 +104,14 @@
|
|||
threadGroup.hashTree = [];
|
||||
testPlan.hashTree = [threadGroup];
|
||||
this.runData.forEach(item => {
|
||||
if (!item.useEnvironment) {
|
||||
this.$error(this.$t("api_test.environment.select_environment"));
|
||||
this.$emit('runRefresh', {});
|
||||
return;
|
||||
}
|
||||
threadGroup.hashTree.push(item);
|
||||
})
|
||||
let reqObj = {id: this.reportId, testElement: testPlan};
|
||||
|
||||
let bodyFiles = this.getBodyUploadFiles(reqObj);
|
||||
let url = "";
|
||||
if (this.debug) {
|
||||
|
|
|
@ -103,6 +103,7 @@
|
|||
}
|
||||
},
|
||||
created() {
|
||||
this.environment = undefined;
|
||||
this.getEnvironments();
|
||||
},
|
||||
watch: {
|
||||
|
@ -118,16 +119,6 @@
|
|||
this.environments.forEach(environment => {
|
||||
parseEnvironment(environment);
|
||||
});
|
||||
let hasEnvironment = false;
|
||||
for (let i in this.environments) {
|
||||
if (this.environments[i].id === this.api.environmentId) {
|
||||
hasEnvironment = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!hasEnvironment) {
|
||||
this.environment = undefined;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.environment = undefined;
|
||||
|
|
Loading…
Reference in New Issue