Поправки багов
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user