fix(接口测试): 场景批量添加到测试计划前环境检查
This commit is contained in:
parent
25f93c798c
commit
ae8fc07f24
|
@ -241,6 +241,13 @@ export default {
|
||||||
if (!sign) {
|
if (!sign) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (this.environmentType === ENV_TYPE.JSON && (!this.projectEnvMap || this.projectEnvMap.size < 1)) {
|
||||||
|
this.$warning(this.$t("api_test.environment.select_environment"));
|
||||||
|
return false;
|
||||||
|
} else if (this.environmentType === ENV_TYPE.GROUP && !this.envGroupId) {
|
||||||
|
this.$warning(this.$t("api_test.environment.select_environment"));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
this.$emit('addTestPlan', this.selection, this.projectEnvMap, this.map, this.environmentType, this.envGroupId);
|
this.$emit('addTestPlan', this.selection, this.projectEnvMap, this.map, this.environmentType, this.envGroupId);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue