Jelajahi Sumber

Поправки

Book Pauk 6 tahun lalu
induk
melakukan
954ce9e85c

+ 2 - 1
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;

+ 1 - 0
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);