fix(接口测试): 参数表格新增多余空行判定修复

This commit is contained in:
baiqi 2024-08-19 11:19:22 +08:00 committed by 刘瑞斌
parent ed115767c3
commit b6d56982c4
1 changed files with 5 additions and 6 deletions

View File

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