fix(接口定义): 修复环境变量显示多选的缺陷

--bug=1021727 --user=王孝刚 【项目管理】项目环境-通用配置,批量删除环境变量后,还在显示批量操作按钮
https://www.tapd.cn/55049933/s/1327256
This commit is contained in:
wxg0103 2023-01-12 16:32:52 +08:00 committed by wxg0103
parent 068f4f4a12
commit 4c6558ae1d
2 changed files with 2 additions and 0 deletions

View File

@ -449,6 +449,7 @@ export default {
}) })
} }
environment.config.commonConfig.variables.forEach(variable => { environment.config.commonConfig.variables.forEach(variable => {
delete variable.showMore;
if (variable.type === 'CSV' && variable.files.length === 0) { if (variable.type === 'CSV' && variable.files.length === 0) {
message = this.$t('api_test.automation.csv_warning'); message = this.$t('api_test.automation.csv_warning');
return; return;

View File

@ -449,6 +449,7 @@ export default {
}) })
} }
environment.config.commonConfig.variables.forEach(variable => { environment.config.commonConfig.variables.forEach(variable => {
delete variable.showMore;
if (variable.type === 'CSV' && variable.files.length === 0) { if (variable.type === 'CSV' && variable.files.length === 0) {
message = this.$t('api_test.automation.csv_warning'); message = this.$t('api_test.automation.csv_warning');
return; return;