mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-04 05:32:26 +08:00
@@ -74,10 +74,9 @@ export function useDataSource(
|
||||
|
||||
// 如果数据异常,需获取正确的页码再次执行
|
||||
if (resultTotal) {
|
||||
const currentTotalPage = Math.ceil(resultTotal / pageSize);
|
||||
if (page > currentTotalPage) {
|
||||
if (page > resultTotal) {
|
||||
setPagination({
|
||||
[pageField]: currentTotalPage,
|
||||
[pageField]: resultTotal,
|
||||
});
|
||||
fetch(opt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user