Улучшение синхронизации
This commit is contained in:
@@ -510,7 +510,9 @@ class Reader extends Vue {
|
||||
if (this.recentBooksActive) {
|
||||
await this.$refs.recentBooksPage.updateTableData();
|
||||
}
|
||||
}
|
||||
|
||||
if (eventName == 'set-recent') {
|
||||
const oldBook = this.mostRecentBookReactive;
|
||||
const newBook = bookManager.mostRecentBook();
|
||||
if (oldBook && newBook) {
|
||||
|
||||
@@ -450,6 +450,7 @@ class BookManager {
|
||||
await bmRecentStore.setItem('recent-last', this.recentLast);
|
||||
|
||||
this.recentChanged = true;
|
||||
this.emit('set-recent');
|
||||
this.emit('recent-changed');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user