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