fix(table): fix pagination error

This commit is contained in:
Vben
2021-03-06 15:10:33 +08:00
parent 9c2a2a0c00
commit 745fcfc014
3 changed files with 53 additions and 63 deletions

View File

@@ -172,7 +172,7 @@ export function useDataSource(
const { current = 1, pageSize = PAGE_SIZE } = unref(getPaginationInfo) as PaginationProps;
if (!pagination || isBoolean(getPaginationInfo)) {
if ((isBoolean(pagination) && !pagination) || isBoolean(getPaginationInfo)) {
pageParams = {};
} else {
pageParams[pageField] = (opt && opt.page) || current;