fix: 修正多个组件中获取最大ID的逻辑

This commit is contained in:
TsMask
2025-02-28 19:43:38 +08:00
parent 1162bb5b28
commit fb5068a772
5 changed files with 10 additions and 10 deletions

View File

@@ -325,8 +325,8 @@ function fnGetList(pageNum?: number) {
});
// 取最大值ID用作实时累加
if (res.total > 0) {
modalState.maxId = Number(res.rows[0].id);
if (total > 0) {
modalState.maxId = Number(rows[0].id);
}
}
tableState.loading = false;