This commit is contained in:
Muhammad Shahzad 2024-06-04 04:51:18 +05:00
parent 05ca36f24e
commit db2ab34cc2

View File

@ -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',