浏览代码

Мелкие поправки

Book Pauk 5 年之前
父节点
当前提交
4fe5b44655

+ 5 - 4
client/components/Reader/HistoryPage/HistoryPage.vue

@@ -137,12 +137,13 @@ class HistoryPage extends Vue {
                 return;
                 return;
             this.initing = true;
             this.initing = true;
 
 
-            await this.updateTableData(10);
+            await this.updateTableData(3);
             await utils.sleep(200);
             await utils.sleep(200);
-            await this.updateTableData(20);
-            await utils.sleep(800);
 
 
-            if (!bookManager.loaded) {
+            if (bookManager.loaded) {
+                await this.updateTableData(10);
+                await utils.sleep(1800);
+            } else {
                 let i = 0;
                 let i = 0;
                 let j = 5;
                 let j = 5;
                 while (i < 500 && !bookManager.loaded) {
                 while (i < 500 && !bookManager.loaded) {

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

@@ -90,6 +90,7 @@ class BookManager {
         await this.cleanBooks();
         await this.cleanBooks();
         await this.cleanRecentBooks();
         await this.cleanRecentBooks();
 
 
+        this.recentChanged = true;
         this.loaded = true;
         this.loaded = true;
         this.emit('load-stored-finish');
         this.emit('load-stored-finish');
     }
     }