From ba298cdb0a6febe8129b51910cea0928d7ccd4db Mon Sep 17 00:00:00 2001 From: radhika587 Date: Fri, 10 Mar 2023 17:26:04 +0530 Subject: [PATCH 1/2] fix Logout issue --- .../customers/partials/CustomerChart.vue | 19 ++-- .../scripts/admin/views/estimates/View.vue | 102 +++--------------- .../scripts/admin/views/invoices/View.vue | 102 +++--------------- 3 files changed, 38 insertions(+), 185 deletions(-) diff --git a/resources/scripts/admin/views/customers/partials/CustomerChart.vue b/resources/scripts/admin/views/customers/partials/CustomerChart.vue index 8b85c102c..ce60d968b 100644 --- a/resources/scripts/admin/views/customers/partials/CustomerChart.vue +++ b/resources/scripts/admin/views/customers/partials/CustomerChart.vue @@ -35,16 +35,7 @@
@@ -177,10 +168,12 @@ const getChartInvoices = computed(() => { return [] }) +const customerId = computed(() => route.params.id) + watch( - route, - () => { - if (route.params.id) { + () => customerId.value, + (id) => { + if (id && route.name === 'customers.view') { loadCustomer() } selectedYear.value = 'This year' diff --git a/resources/scripts/admin/views/estimates/View.vue b/resources/scripts/admin/views/estimates/View.vue index a4d0f7996..878ac4d5e 100644 --- a/resources/scripts/admin/views/estimates/View.vue +++ b/resources/scripts/admin/views/estimates/View.vue @@ -37,32 +37,10 @@