Поправки багов

This commit is contained in:
Book Pauk
2019-02-03 22:41:24 +07:00
parent 5a4ef54f52
commit 223b553359
2 changed files with 13 additions and 4 deletions

View File

@@ -66,7 +66,7 @@
@stop-text-search="stopTextSearch">
</SearchPage>
<CopyTextPage v-if="copyTextActive" ref="copyTextPage" @copy-text-toggle="copyTextToggle"></CopyTextPage>
<HistoryPage v-if="historyActive" ref="historyPage" @load-book="loadBook" @most-recent-book="mostRecentBook" @history-toggle="historyToggle"></HistoryPage>
<HistoryPage v-if="historyActive" ref="historyPage" @load-book="loadBook" @history-toggle="historyToggle"></HistoryPage>
<SettingsPage v-if="settingsActive" ref="settingsPage" @settings-toggle="settingsToggle"></SettingsPage>
</el-main>
</el-container>
@@ -485,7 +485,6 @@ class Reader extends Vue {
//акивируем страницу с текстом
this.$nextTick(async() => {
const last = this.mostRecentBookReactive;
const isParsed = await bookManager.hasBookParsed(last);
if (!isParsed) {
this.$root.$emit('set-app-title');
@@ -508,7 +507,11 @@ class Reader extends Vue {
}
loadBook(opts) {
this.closeAllTextPages();
if (!opts) {
this.mostRecentBook();
return;
}
this.progressActive = true;
this.$nextTick(async() => {
const progress = this.$refs.page;