fix: 修正多个组件中获取最大ID的逻辑
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user