fix(接口定义): 参数自动新增行

--bug=1047153 --user=白奇 【接口测试】编辑场景-复制case,修改参数,没有自动增加一行 https://www.tapd.cn/55049933/s/1585856
This commit is contained in:
baiqi 2024-09-25 15:18:06 +08:00 committed by 刘瑞斌
parent 9386c45d33
commit c20886624f
1 changed files with 2 additions and 5 deletions

View File

@ -930,11 +930,8 @@
}); });
const { lastDataIsDefault } = filterKeyValParams(arr, defaultLineData.value, false); const { lastDataIsDefault } = filterKeyValParams(arr, defaultLineData.value, false);
if ( if (
hasNoIdItem && (hasNoIdItem && !lastDataIsDefault) ||
!props.disabledExceptParam && (!props.disabledExceptParam && !props.disabledParamValue && !lastDataIsDefault && !props.isTreeTable)
!props.disabledParamValue &&
!lastDataIsDefault &&
!props.isTreeTable
) { ) {
addTableLine(arr.length - 1, false, true); addTableLine(arr.length - 1, false, true);
} }