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

This commit is contained in:
Book Pauk
2019-01-16 15:54:50 +07:00
parent c49abaf8e5
commit 1cf1ebb81e

View File

@@ -72,6 +72,8 @@ export default @Component({
const textPage = this.$refs.page;
if (textPage.bookPos != newValue) {
textPage.bookPos = newValue;
}
if (this.lastOpenedBook && this.lastOpenedBook.bookPos != newValue) {
this.commit('reader/setOpenedBook', Object.assign({}, this.lastOpenedBook, {bookPos: newValue}));
}
}