瀏覽代碼

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

Book Pauk 6 年之前
父節點
當前提交
1cf1ebb81e
共有 1 個文件被更改,包括 2 次插入0 次删除
  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;
                 const textPage = this.$refs.page;
                 if (textPage.bookPos != newValue) {
                 if (textPage.bookPos != newValue) {
                     textPage.bookPos = newValue;
                     textPage.bookPos = newValue;
+                }
+                if (this.lastOpenedBook && this.lastOpenedBook.bookPos != newValue) {
                     this.commit('reader/setOpenedBook', Object.assign({}, this.lastOpenedBook, {bookPos: newValue}));
                     this.commit('reader/setOpenedBook', Object.assign({}, this.lastOpenedBook, {bookPos: newValue}));
                 }
                 }
             }
             }