From 18e3e21f06d9e1a810eae98aaf2f03a97d2b91a4 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Wed, 28 Apr 2021 08:17:11 +0800 Subject: [PATCH] fix(webui): dashboard would not reload properly --- komga-webui/src/views/Dashboard.vue | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/komga-webui/src/views/Dashboard.vue b/komga-webui/src/views/Dashboard.vue index 4a43feb1d..c9d1484c9 100644 --- a/komga-webui/src/views/Dashboard.vue +++ b/komga-webui/src/views/Dashboard.vue @@ -190,13 +190,9 @@ export default Vue.extend({ selectedBooks(val: BookDto[]) { val.forEach(i => this.replaceBook(i)) }, - }, - beforeRouteUpdate(to, from, next) { - if (to.params.libraryId !== from.params.libraryId) { - this.loadAll(to.params.libraryId) - } - - next() + '$route' (to, from) { + this.loadAll(this.libraryId) + }, }, computed: { fixedCardWidth(): number {