Настройка правильных редиректов роутера

This commit is contained in:
Book Pauk
2021-11-07 15:38:17 +07:00
parent 084197530e
commit 6053ca6c0e
3 changed files with 29 additions and 2 deletions

View File

@@ -288,6 +288,15 @@ class Reader {
this.lastActivePage = false;
this.$watch(
() => this.$route.path,
(newValue) => {
if (newValue == '/reader') {
this.updateRoute();
}
}
);
this.debouncedSetRecentBook = _.debounce(async(newValue) => {
const recent = this.mostRecentBook();
if (recent && (recent.bookPos != newValue || recent.bookPosSeen !== this.bookPosSeen)) {