Skip to content

Commit

Permalink
Merge branch 'dev-4.2.2' into dev-4.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
HSunboy committed Nov 22, 2023
2 parents 3ed509e + 44e5809 commit 5f63f31
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/page/Project/Sensitive/components/SensitiveColumn/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,15 @@ const SensitiveColumn = ({
}), //删除失败
);
}

tableRef.current?.reload?.();
const { page } = sensitiveColumn;
const newCurrent = Math.ceil((page?.totalElements - ids?.length) / page?.size);
tableRef.current?.reload?.({
pagination: {
current: newCurrent >= page?.number ? page?.number : newCurrent,
pageSize: page?.size,
},
pageSize: page?.size,
});
tableRef.current?.resetSelectedRows();
setSubmiting(false);
}
Expand Down

0 comments on commit 5f63f31

Please sign in to comment.