feat(AccountsPage): add change page size
This commit is contained in:
@@ -138,7 +138,10 @@ export default function AccountsPage() {
|
||||
|
||||
const onTableChange: TableProps<AllUser>['onChange'] = (pagination) => {
|
||||
console.log(pagination);
|
||||
UserService.getUsers(pagination.current as number, 10).then((data) => {
|
||||
UserService.getUsers(
|
||||
pagination.current as number,
|
||||
pagination.pageSize
|
||||
).then((data) => {
|
||||
setAccounts(data);
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user