From 4ae130a64635dfdded31d5272a1ed8ee6931af50 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Fri, 5 Feb 2021 01:29:53 +0100 Subject: [PATCH] Fixed album navigation interfering with filter navigation. --- assets/components/actors/actor.vue | 6 +++--- assets/components/tags/tag.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/components/actors/actor.vue b/assets/components/actors/actor.vue index ca2a02ce..989610be 100644 --- a/assets/components/actors/actor.vue +++ b/assets/components/actors/actor.vue @@ -402,9 +402,9 @@ function showAlbum() { } async function watchRoute(to, from) { - console.log(to, from); - - await this.fetchActor(); + if (to.hash !== '#album' && from.hash !== '#album') { + await this.fetchActor(); + } } async function mounted() { diff --git a/assets/components/tags/tag.vue b/assets/components/tags/tag.vue index 75672717..6956ac71 100644 --- a/assets/components/tags/tag.vue +++ b/assets/components/tags/tag.vue @@ -102,7 +102,7 @@ function showAlbum() { } async function watchRoute(to, from) { - if (to.params.pageNumber !== from.params.pageNumber) { + if (to.hash !== '#album' && from.hash !== '#album') { await this.fetchReleases(); } }