feat (patient): add example api request

This commit is contained in:
Abizrh
2025-08-10 15:54:41 +07:00
parent 8705ba8fe4
commit 0515f8628f
3 changed files with 21 additions and 5 deletions
+11 -1
View File
@@ -7,7 +7,7 @@ const refSearchNav = {
console.log('>>>', val)
},
onClear: () => {
// refresh page
// clear url param
},
}
@@ -19,6 +19,16 @@ const hreaderPrep: HeaderPrep = {
onClick: () => (window.location.pathname = '/emergency/patient/add'),
},
}
// NOTE: example api
async function getPatientList() {
const { data } = await xfetch('/api/v1/patient')
console.log('data patient', data)
}
onMounted(() => {
getPatientList()
})
</script>
<template>