fix(webui): dashboard would not reload properly

This commit is contained in:
Gauthier Roebroeck 2021-04-28 08:17:11 +08:00
parent f4ca3f22e9
commit 18e3e21f06

View file

@ -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 {