From b04409a456bffd9fac42c9b082447f2b45447db6 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 19 Aug 2022 17:34:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E5=8F=98=E9=87=8F=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E5=A4=B1=E8=B4=A5=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=1016049 --user=王孝刚 【接口测试】场景变量,导入变量失败 https://www.tapd.cn/55049933/s/1228178 --- .../api/automation/scenario/variable/VariableList.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue b/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue index 474d867401..2f37b8fd16 100644 --- a/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue +++ b/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue @@ -43,7 +43,7 @@ - + {{ $t("commons.import_variable") }} @@ -171,7 +171,7 @@ - + @@ -269,8 +269,9 @@ export default { this.variables.splice(sameNameIndex, 1, importData); } } else { - this.variables.splice(this.variables.length - 1, 0, importData); + this.variables.splice(this.variables.length, 0, importData); } + this.sortParameters(); }) }, exportVariable() {