浏览代码

Дополнение в convertRecent

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

+ 2 - 1
client/components/Reader/share/bookManager.js

@@ -81,13 +81,14 @@ class BookManager {
 
         for (const key in this.recent) {
             const book = this.recent[key];
+
             if (!book.path) {
                 continue;
             }
 
             const newKey = this.keyFromPath(book.path);
 
-            if (!book.deleted && key !== newKey) {
+            if (!book.deleted && key !== newKey || book.key !== newKey) {
                 this.recent[newKey] = _.cloneDeep(book);
                 this.recent[newKey].key = newKey;
                 book.deleted = 1;