From 2fe05f23d1f47ab4f4924e696b3221da87c399a8 Mon Sep 17 00:00:00 2001 From: joan Date: Thu, 5 Jan 2023 14:57:47 +0100 Subject: [PATCH] Data store refactor --- src/components/NavBar.vue | 3 +- src/components/PaginateData.vue | 93 +++++++++++++-------- src/composables/useArrayData.js | 56 +++++++++++++ src/pages/Customer/Card/CustomerSummary.vue | 5 ++ src/pages/Customer/CustomerCreate.vue | 17 ++-- src/pages/Customer/CustomerList.vue | 11 +++ src/pages/Customer/CustomerMain.vue | 49 +++++++++++ src/stores/useArrayDataStore.js | 19 +++++ 8 files changed, 210 insertions(+), 43 deletions(-) create mode 100644 src/composables/useArrayData.js create mode 100644 src/stores/useArrayDataStore.js diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index cb1283eb5..30afedb7a 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -11,6 +11,7 @@ const session = useSession(); const state = useState(); const user = state.getUser(); const token = session.getToken(); +const appName = 'Lilium'; onMounted(() => (state.headerMounted.value = true)); @@ -37,7 +38,7 @@ function onToggleDrawer() { - Salix + {{ appName }} diff --git a/src/components/PaginateData.vue b/src/components/PaginateData.vue index 034f64d90..8c297055a 100644 --- a/src/components/PaginateData.vue +++ b/src/components/PaginateData.vue @@ -1,7 +1,7 @@