From 56760245d45ce32849d8ac187f160b22a68f3ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=92=E8=8F=9C=E7=99=BD=E7=8E=89=E6=B1=A4?= <79054161+Azir-11@users.noreply.github.com> Date: Wed, 25 Dec 2024 17:51:44 +0800 Subject: [PATCH] fix(hooks): The total number before assigning a value to the table is incorrect. (#687) --- src/hooks/common/table.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hooks/common/table.ts b/src/hooks/common/table.ts index 6619f8b3..9bb8f76b 100644 --- a/src/hooks/common/table.ts +++ b/src/hooks/common/table.ts @@ -119,6 +119,7 @@ export function useTable(config: NaiveUI.NaiveTabl page: 1, pageSize: 10, showSizePicker: true, + itemCount: 0, pageSizes: [10, 15, 20, 25, 30], onUpdatePage: async (page: number) => { pagination.page = page;