浏览代码

Поправил баг

Book Pauk 6 年之前
父节点
当前提交
b742abda53
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      client/components/Reader/Reader.vue

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

@@ -568,8 +568,8 @@ class Reader extends Vue {
         }
 
         // уже просматривается сейчас
-        const recent = this.mostRecentBook();
-        if (!opts.force && recent && recent.url == opts.url && bookManager.hasBookParsed(recent)) {
+        const lastBook = (this.$refs.page ? this.$refs.page.lastBook : null);
+        if (!opts.force && lastBook && lastBook.url == opts.url && bookManager.hasBookParsed(lastBook)) {
             this.loaderActive = false;
             return;
         }