diff --git a/resources/js/pages/patients/patients.vue b/resources/js/pages/patients/patients.vue index 4725474..ee3d1ea 100644 --- a/resources/js/pages/patients/patients.vue +++ b/resources/js/pages/patients/patients.vue @@ -42,16 +42,17 @@ onMounted(async () => { store.dispatch('updateIsLoading', true) await store.dispatch('patientList') // console.log('patientList',store.getters.getPatientList) - patientList.value = store.getters.getPatientList + // patientList.value = store.getters.getPatientList store.dispatch('updateIsLoading', false) - + }); const getPatientList = computed(async () => { - return patientList.value.map(history => ({ + patientList.value = store.getters.getPatientList.map(history => ({ ...history, dob: changeFormat(history.dob), })); - // return patientList.value + return patientList.value + }); onUnmounted(async () => {}); @@ -84,8 +85,9 @@ const headers = [ key: 'email', }, { - title: 'Date Of Birth', key: 'dob', + title: 'Date Of Birth' + }, { title: 'Phone',