mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 20:49:56 +08:00
fix(接口测试): 场景批量添加到测试计划前环境检查
This commit is contained in:
parent
25f93c798c
commit
ae8fc07f24
@ -241,6 +241,13 @@ export default {
|
||||
if (!sign) {
|
||||
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);
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user