Explorar o código

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

Book Pauk %!s(int64=6) %!d(string=hai) anos
pai
achega
1cf1ebb81e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      client/components/Reader/Reader.vue

+ 2 - 0
client/components/Reader/Reader.vue

@@ -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}));
                 }
             }