fix(hooks): The total number before assigning a value to the table is incorrect. (#687)

This commit is contained in:
青菜白玉汤 2024-12-25 17:51:44 +08:00 committed by GitHub
parent d7aebb7dfa
commit 56760245d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,6 +119,7 @@ export function useTable<A extends NaiveUI.TableApiFn>(config: NaiveUI.NaiveTabl
page: 1,
pageSize: 10,
showSizePicker: true,
itemCount: 0,
pageSizes: [10, 15, 20, 25, 30],
onUpdatePage: async (page: number) => {
pagination.page = page;