Browse Source

Поправки багов

Book Pauk 5 years ago
parent
commit
49b3f05d65

+ 1 - 1
client/components/Reader/Reader.vue

@@ -512,7 +512,7 @@ class Reader extends Vue {
             }
         }
 
-        if (eventName == 'set-recent') {
+        if (eventName == 'set-recent' || eventName == 'recent-deleted') {
             const oldBook = this.mostRecentBookReactive;
             const newBook = bookManager.mostRecentBook();
             if (oldBook && newBook) {

+ 1 - 0
client/components/Reader/share/bookManager.js

@@ -370,6 +370,7 @@ class BookManager {
             this.recentLast = null;
             await bmRecentStore.setItem('recent-last', this.recentLast);
         }
+        this.emit('recent-deleted', value.key);
         this.emit('recent-changed', value.key);
     }