fix: search on list file
This commit is contained in:
No files matched your search
@@ -32,6 +32,7 @@ import { units, getUnitList } from '~/handlers/_shared.handler'
|
||||
|
||||
// Services
|
||||
import { getSpecialists, getSpecialistDetail } from '~/services/specialist.service'
|
||||
import { get } from "@vueuse/core"
|
||||
|
||||
const title = ref('')
|
||||
|
||||
@@ -44,8 +45,8 @@ const {
|
||||
handleSearch,
|
||||
fetchData: getSpecialistList,
|
||||
} = usePaginatedList({
|
||||
fetchFn: async ({ page, search }) => {
|
||||
const result = await getSpecialists({ search, page })
|
||||
fetchFn: async (params: any) => {
|
||||
const result = await getSpecialists({ search: params.search, page: params['page-number'] || 0 })
|
||||
return { success: result.success || false, body: result.body || {} }
|
||||
},
|
||||
entityName: 'specialist',
|
||||
|
||||
Reference in New Issue
Block a user