From 4fe5b4465513873bcb6e56782c77991086ff719a Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Fri, 23 Aug 2019 12:48:32 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/HistoryPage/HistoryPage.vue | 9 +++++---- client/components/Reader/share/bookManager.js | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/client/components/Reader/HistoryPage/HistoryPage.vue b/client/components/Reader/HistoryPage/HistoryPage.vue index cf3a00b9..49e576d3 100644 --- a/client/components/Reader/HistoryPage/HistoryPage.vue +++ b/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) { diff --git a/client/components/Reader/share/bookManager.js b/client/components/Reader/share/bookManager.js index 4caa8c1a..496e8c80 100644 --- a/client/components/Reader/share/bookManager.js +++ b/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'); }