Поправлен баг вычисления rootRoute

This commit is contained in:
Book Pauk
2020-02-04 16:29:10 +07:00
parent e388e2a1c7
commit d0891fb652
2 changed files with 16 additions and 7 deletions

View File

@@ -302,8 +302,8 @@ class Reader extends Vue {
(async() => {
await bookManager.init(this.settings);
bookManager.addEventListener(this.bookManagerEvent);
if (this.$root.rootRoute == '/reader') {
if (this.$root.rootRoute() == '/reader') {
if (this.routeParamUrl) {
await this.loadBook({url: this.routeParamUrl, bookPos: this.routeParamPos, force: this.routeParamRefresh});
} else {
@@ -1086,7 +1086,7 @@ class Reader extends Vue {
}
keyHook(event) {
if (this.$root.rootRoute == '/reader') {
if (this.$root.rootRoute() == '/reader') {
let handled = false;
if (!handled && this.helpActive)
handled = this.$refs.helpPage.keyHook(event);