fix(环境管理): 点击“模块”后再点击“无”添加环境会有“模块不能为空”的提示导致无法添加

--bug=1010783 --user=李玉号 项目环境添加点击“模块”后再点击“无”添加环境会有“模块不能为空”的提示导致无法添加
https://www.tapd.cn/55049933/s/1112743
This commit is contained in:
shiziyuan9527 2022-03-03 11:17:29 +08:00 committed by shiziyuan9527
parent 0d4c2d5ae5
commit b9e6ba1971
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}