perPage 可能是字符串 (#1825)

This commit is contained in:
liaoxuezhi 2021-04-19 19:00:05 +08:00 committed by GitHub
parent 5afc8fc22d
commit e52cdd1cc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -354,9 +354,9 @@ export const CRUDStore = ServiceStore.named('CRUDStore')
} }
}); });
function changePage(page: number, perPage?: number) { function changePage(page: number, perPage?: number | string) {
self.page = page; self.page = page;
perPage && (self.perPage = perPage); perPage && (self.perPage = parseInt(perPage as string, 10));
} }
function selectAction(action: Action) { function selectAction(action: Action) {