fix: honor table defaults and preserve dispatch mappings

This commit is contained in:
IanShaw027 committed 2026-04-10 17:55:37 +08:00
1 parent b6bc042302
commit 67a05dfccd
9 files changed
+163 -130

No files matched your search

+1 -2
View File
@@ -1,7 +1,7 @@
import { ref, reactive, onUnmounted, toRaw } from 'vue'
import { useDebounceFn } from '@vueuse/core'
import type { BasePaginationResponse, FetchOptions } from '@/types'
import { getPersistedPageSize, setPersistedPageSize } from './usePersistedPageSize'
import { getPersistedPageSize } from './usePersistedPageSize'
interface PaginationState {
page: number
@@ -88,7 +88,6 @@ export function useTableLoader<T, P extends Record<string, any>>(options: TableL
const handlePageSizeChange = (size: number) => {
pagination.page_size = size
pagination.page = 1
setPersistedPageSize(size)
load()
}