Skip to content

Commit

Permalink
fix(table): fix the param resetPageIndex is invalid in ProTable's met…
Browse files Browse the repository at this point in the history
…hod reload. (ant-design#4397)
  • Loading branch information
ooPG233 committed Jan 4, 2022
1 parent 89ef39f commit 1169309
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/table/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ export function useActionType<T>(
reload: async (resetPageIndex?: boolean) => {
// 如果为 true,回到第一页
if (resetPageIndex) {
await props.onCleanSelected();
await action.setPageInfo({
current: 1,
});
}
action?.reload();
},
Expand Down

0 comments on commit 1169309

Please sign in to comment.