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

This commit is contained in:
Book Pauk
2019-02-03 23:01:07 +07:00
parent cd4fb75c9d
commit 079ebb5ce1
2 changed files with 49 additions and 51 deletions

View File

@@ -38,7 +38,6 @@ class CopyTextPage extends Vue {
} }
async init(bookPos, parsed, copyFullText) { async init(bookPos, parsed, copyFullText) {
if (parsed && this.parsed != parsed) {
this.text = 'Загрузка'; this.text = 'Загрузка';
await this.$nextTick(); await this.$nextTick();
@@ -84,7 +83,6 @@ class CopyTextPage extends Vue {
this.text = text; this.text = text;
this.initStep = false; this.initStep = false;
this.parsed = parsed;
await this.$nextTick(); await this.$nextTick();
this.$refs.text.focus(); this.$refs.text.focus();
@@ -94,7 +92,6 @@ class CopyTextPage extends Vue {
this.$refs.text.scrollTop = p.offsetTop; this.$refs.text.scrollTop = p.offsetTop;
} }
} }
}
close() { close() {
this.stopInit = true; this.stopInit = true;

View File

@@ -207,6 +207,7 @@ class HistoryPage extends Vue {
} }
loadBook(url) { loadBook(url) {
if (this.mostRecentBook.url != url)
this.$emit('load-book', {url}); this.$emit('load-book', {url});
this.close(); this.close();
} }