From 954ce9e85c4314793e79866e6660a6f739599cb3 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Wed, 27 Feb 2019 06:00:30 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/HistoryPage/HistoryPage.vue | 3 ++- client/components/Reader/share/bookManager.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client/components/Reader/HistoryPage/HistoryPage.vue b/client/components/Reader/HistoryPage/HistoryPage.vue index 7cd98ebb..176b56e8 100644 --- a/client/components/Reader/HistoryPage/HistoryPage.vue +++ b/client/components/Reader/HistoryPage/HistoryPage.vue @@ -226,7 +226,8 @@ class HistoryPage extends Vue { this.updateTableData(); const newRecent = bookManager.mostRecentBook(); - if (this.mostRecentBook != newRecent) + + if (!(this.mostRecentBook && newRecent && this.mostRecentBook.key == newRecent.key)) this.$emit('load-book', newRecent); this.mostRecentBook = newRecent; diff --git a/client/components/Reader/share/bookManager.js b/client/components/Reader/share/bookManager.js index 495672b4..a7daef5a 100644 --- a/client/components/Reader/share/bookManager.js +++ b/client/components/Reader/share/bookManager.js @@ -25,6 +25,7 @@ class BookManager { async init(settings) { this.settings = settings; + //this.booksCached нужен только для ускорения загрузки читалки this.booksCached = await bmCacheStore.getItem('books'); this.recent = await bmCacheStore.getItem('recent'); this.books = Object.assign({}, this.booksCached);