feat: jumping from the chunk list page to the file list page keeps th… (#174)

* feat: jumping from the chunk list page to the file list page keeps the original page number.

* feat: jump to the file upload page and reset the file list page number to 1
This commit is contained in:
balibabu
2024-03-31 17:44:34 +08:00
committed by GitHub
parent d9e6b103d4
commit dad0d2eb9d
8 changed files with 60 additions and 19 deletions

View File

@@ -74,7 +74,7 @@ export const useGetPagination = (fetchDocumentList: () => void) => {
showQuickJumper: true,
total: kFModel.total,
showSizeChanger: true,
current: kFModel.pagination.currentPage,
current: kFModel.pagination.current,
pageSize: kFModel.pagination.pageSize,
pageSizeOptions: [1, 2, 10, 20, 50, 100],
onChange: onPageChange,