From ae0e401b6e7f2206354fe52732e1b8c37eb4cf2c Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 17 Oct 2022 11:38:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=9A=E7=94=A8=E9=85=8D=E7=BD=AE=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E9=87=8D=E5=A4=8D=E6=97=A0=E6=B3=95=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E5=8F=82=E6=95=B0=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018184 --user=王孝刚 【项目设置】项目环境-编辑环境-通用配置-手动添加一个参数不能自动添加一行空行,只能批量添加参数 https://www.tapd.cn/55049933/s/1263629 --- .../src/components/environment/commons/ApiScenarioVariables.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue b/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue index 42761822fa..d01c9c839f 100644 --- a/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue +++ b/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue @@ -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);