diff --git a/src/hooks/table.ts b/src/hooks/table.ts index 3ee39e80..d840c735 100644 --- a/src/hooks/table.ts +++ b/src/hooks/table.ts @@ -138,8 +138,10 @@ export function useTable(options?: BasicTableProps) { query(); } - const getDataList = () => { - state.pagination!.current = 1 + const getDataList = (refresh: boolean = true) => { + if(refresh){ + state.pagination!.current = 1 + } query() } diff --git a/src/views/admin/client/index.vue b/src/views/admin/client/index.vue index 36abe021..ff01f91b 100644 --- a/src/views/admin/client/index.vue +++ b/src/views/admin/client/index.vue @@ -2,7 +2,7 @@