fix(项目设置): 修复通用配置参数重复无法添加新的参数的缺陷

--bug=1018184 --user=王孝刚
【项目设置】项目环境-编辑环境-通用配置-手动添加一个参数不能自动添加一行空行,只能批量添加参数
https://www.tapd.cn/55049933/s/1263629
This commit is contained in:
wxg0103 2022-10-17 11:38:37 +08:00 committed by wxg0103
parent affaddc03f
commit ae0e401b6e
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ export default {
if (repeatKey !== "") {
this.$warning(this.$t('api_test.environment.common_config') + "【" + repeatKey + "】" + this.$t('load_test.param_is_duplicate'));
}
if (isNeedCreate && !repeatKey) {
if (isNeedCreate) {
this.variables.push(new KeyValue({enable: true, id: getUUID(), type: 'CONSTANT'}));
}
this.$emit('change', this.variables);