From 92afc5cb3390bf8a7527fd9ce397b842837a8f5f Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Thu, 17 Oct 2019 19:09:05 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=B1=D0=B0=D0=B3=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/Reader.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/components/Reader/Reader.vue b/client/components/Reader/Reader.vue index e28f4225..762198a7 100644 --- a/client/components/Reader/Reader.vue +++ b/client/components/Reader/Reader.vue @@ -511,7 +511,7 @@ class Reader extends Vue { async bookManagerEvent(eventName) { if (eventName == 'set-recent' || eventName == 'recent-deleted') { - const oldBook = this.mostRecentBookReactive; + const oldBook = (this.textPage ? this.textPage.lastBook : null); const newBook = bookManager.mostRecentBook(); if (!(oldBook && newBook && oldBook.key == newBook.key)) { @@ -908,6 +908,7 @@ class Reader extends Vue { this.updateRoute(); const textPage = this.$refs.page; if (textPage.showBook) { + this.textPage = textPage; textPage.lastBook = last; textPage.bookPos = (last.bookPos !== undefined ? last.bookPos : 0); @@ -932,7 +933,7 @@ class Reader extends Vue { url = 'http://' + url; // уже просматривается сейчас - const lastBook = (this.$refs.page ? this.$refs.page.lastBook : null); + const lastBook = (this.textPage ? this.textPage.lastBook : null); if (!opts.force && lastBook && lastBook.url == url && await bookManager.hasBookParsed(lastBook)) { this.loaderActive = false; return;