From 67d844d6e6630fd5b45ae723de89ca74c82edd0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Tue, 2 May 2023 23:15:32 +0200 Subject: [PATCH] add on every page query for location --- src/components/overview/AgendaView.vue | 1 + src/pages/EventManagement.vue | 22 +++++++++++++++++++++- src/pages/EventOverview.vue | 21 ++++++++++++++++++--- 3 files changed, 40 insertions(+), 4 deletions(-) diff --git a/src/components/overview/AgendaView.vue b/src/components/overview/AgendaView.vue index 1af084a..2df0202 100644 --- a/src/components/overview/AgendaView.vue +++ b/src/components/overview/AgendaView.vue @@ -144,6 +144,7 @@ export default defineComponent({ } onBeforeMount(async () => { + await router.replace({ query: { ...route.query, q_tab: 'agendaView' } }); if (!Object.keys(route.query).includes('q_date')) { const q_date = date.formatDate(selectedDate.value, 'YYYY-MM-DD'); await router.replace({ query: { ...route.query, q_date } }); diff --git a/src/pages/EventManagement.vue b/src/pages/EventManagement.vue index 76fa548..e1c0c1f 100644 --- a/src/pages/EventManagement.vue +++ b/src/pages/EventManagement.vue @@ -44,7 +44,8 @@