From c20886624fc529e6cede54905eb9792cba939968 Mon Sep 17 00:00:00 2001 From: baiqi Date: Wed, 25 Sep 2024 15:18:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E8=87=AA=E5=8A=A8=E6=96=B0=E5=A2=9E=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1047153 --user=白奇 【接口测试】编辑场景-复制case,修改参数,没有自动增加一行 https://www.tapd.cn/55049933/s/1585856 --- frontend/src/views/api-test/components/paramTable.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/src/views/api-test/components/paramTable.vue b/frontend/src/views/api-test/components/paramTable.vue index ec4dba0072..d2ec2a45b6 100644 --- a/frontend/src/views/api-test/components/paramTable.vue +++ b/frontend/src/views/api-test/components/paramTable.vue @@ -930,11 +930,8 @@ }); const { lastDataIsDefault } = filterKeyValParams(arr, defaultLineData.value, false); if ( - hasNoIdItem && - !props.disabledExceptParam && - !props.disabledParamValue && - !lastDataIsDefault && - !props.isTreeTable + (hasNoIdItem && !lastDataIsDefault) || + (!props.disabledExceptParam && !props.disabledParamValue && !lastDataIsDefault && !props.isTreeTable) ) { addTableLine(arr.length - 1, false, true); }