fix(项目设置): 修复通用配置参数重复无法添加新的参数的缺陷
--bug=1018184 --user=王孝刚 【项目设置】项目环境-编辑环境-通用配置-手动添加一个参数不能自动添加一行空行,只能批量添加参数 https://www.tapd.cn/55049933/s/1263629
This commit is contained in:
parent
affaddc03f
commit
ae0e401b6e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue