소스 검색

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

Book Pauk 5 년 전
부모
커밋
4fe5b44655
2개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      client/components/Reader/HistoryPage/HistoryPage.vue
  2. 1 0
      client/components/Reader/share/bookManager.js

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

@@ -137,12 +137,13 @@ class HistoryPage extends Vue {
                 return;
             this.initing = true;
 
-            await this.updateTableData(10);
+            await this.updateTableData(3);
             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 j = 5;
                 while (i < 500 && !bookManager.loaded) {

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

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