Поправка бага
This commit is contained in:
@@ -175,15 +175,18 @@ class Reader extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
(async() => {
|
||||||
|
await bookManager.init();
|
||||||
if (this.$root.rootRoute == '/reader') {
|
if (this.$root.rootRoute == '/reader') {
|
||||||
if (this.routeParamUrl) {
|
if (this.routeParamUrl) {
|
||||||
this.loadBook({url: this.routeParamUrl, bookPos: this.routeParamPos});
|
this.loadBook({url: this.routeParamUrl, bookPos: this.routeParamPos});
|
||||||
} else if (this.mostRecentBook()) {
|
} else if (this.mostRecentBook()) {
|
||||||
this.loadBook({url: this.this.mostRecentBook().url});
|
this.loadBook({url: this.mostRecentBook().url});
|
||||||
} else {
|
} else {
|
||||||
this.loaderActive = true;
|
this.loaderActive = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
})();
|
||||||
}
|
}
|
||||||
|
|
||||||
get routeParamPos() {
|
get routeParamPos() {
|
||||||
|
|||||||
Reference in New Issue
Block a user