From 5dfce40cb60fd6f313031dbfa4f46f68e32f9562 Mon Sep 17 00:00:00 2001 From: wvffle Date: Thu, 30 Jun 2022 01:10:44 +0000 Subject: [PATCH] Update router configuration to fix some errors --- front/src/components/library/Albums.vue | 2 +- front/src/components/library/Artists.vue | 2 +- front/src/components/library/Home.vue | 2 +- front/src/components/library/Library.vue | 2 +- front/src/components/library/Podcasts.vue | 2 +- front/src/router/index.ts | 53 +++++++++++------------ 6 files changed, 31 insertions(+), 32 deletions(-) diff --git a/front/src/components/library/Albums.vue b/front/src/components/library/Albums.vue index ef7abbb46..946998a22 100644 --- a/front/src/components/library/Albums.vue +++ b/front/src/components/library/Albums.vue @@ -96,7 +96,7 @@ const fetchData = async () => { } const store = useStore() -watch(store.state.moderation.lastUpdate, fetchData) +watch(() => store.state.moderation.lastUpdate, fetchData) onBeforeRouteUpdate(fetchData) fetchData() diff --git a/front/src/components/library/Artists.vue b/front/src/components/library/Artists.vue index 361b12bdb..15f6a28bc 100644 --- a/front/src/components/library/Artists.vue +++ b/front/src/components/library/Artists.vue @@ -99,7 +99,7 @@ const fetchData = async () => { } const store = useStore() -watch([store.state.moderation.lastUpdate, excludeCompilation], fetchData) +watch([() => store.state.moderation.lastUpdate, excludeCompilation], fetchData) onBeforeRouteUpdate(fetchData) fetchData() diff --git a/front/src/components/library/Home.vue b/front/src/components/library/Home.vue index db7a0112e..9de4c718e 100644 --- a/front/src/components/library/Home.vue +++ b/front/src/components/library/Home.vue @@ -1,6 +1,6 @@