diff --git a/app/components/flow/patient/list.vue b/app/components/flow/patient/list.vue index 2f34f96d..b70a4c1b 100644 --- a/app/components/flow/patient/list.vue +++ b/app/components/flow/patient/list.vue @@ -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() +})