✨ feat (patient): add example api request
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user