From 0515f8628f25fb73de8dc854e501b645a3e611ae Mon Sep 17 00:00:00 2001 From: Abizrh Date: Sun, 10 Aug 2025 15:54:41 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat=20(patient):=20add=20example?= =?UTF-8?q?=20api=20request?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/flow/patient/list.vue | 12 +++++++++++- app/pages/(features)/patient/index.vue | 6 +++++- app/pages/index.vue | 8 +++++--- 3 files changed, 21 insertions(+), 5 deletions(-) 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() +})