fix: search on list file

This commit is contained in:
riefive
2025-10-04 08:30:16 +07:00
parent 41405ae113
commit 4908f16770
12 changed files with 25 additions and 24 deletions
+3 -3
View File
@@ -44,8 +44,8 @@ const {
handleSearch,
fetchData: getInstallationList,
} = usePaginatedList({
fetchFn: async ({ page, search }) => {
const result = await getInstallations({ search, page })
fetchFn: async (params: any) => {
const result = await getInstallations({ search: params.search, page: params['page-number'] || 0 })
return { success: result.success || false, body: result.body || {} }
},
entityName: 'installation',
@@ -111,7 +111,7 @@ watch([recId, recAction], () => {
})
onMounted(async () => {
await getEncounterClassList();
await getEncounterClassList()
await getInstallationList()
})
</script>