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

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

@@ -200,14 +200,15 @@ class HistoryPage extends Vue {
const newRecent = bookManager.mostRecentBook();
if (this.mostRecentBook != newRecent)
this.$emit('load-book', newRecent);
this.mostRecentBook = newRecent;
if (!this.mostRecentBook)
this.close();
}
loadBook(url) {
this.$emit('load-book', {url});
if (this.mostRecentBook.url != url)
this.$emit('load-book', {url});
this.close();
}