fix(环境管理): 点击“模块”后再点击“无”添加环境会有“模块不能为空”的提示导致无法添加
--bug=1010783 --user=李玉号 项目环境添加点击“模块”后再点击“无”添加环境会有“模块不能为空”的提示导致无法添加 https://www.tapd.cn/55049933/s/1112743
This commit is contained in:
parent
0d4c2d5ae5
commit
b9e6ba1971
|
@ -346,7 +346,7 @@ export default {
|
|||
}
|
||||
obj.details = [JSON.parse(JSON.stringify(this.pathDetails))];
|
||||
} else {
|
||||
if (this.condition.details.length === 0) {
|
||||
if (this.condition.type === "MODULE" && this.condition.details.length === 0) {
|
||||
this.$warning(this.$t('api_test.environment.module_warning'));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue