mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +00:00
wait for vue router to be ready (#15456)
* wait for vue router to be ready * fix(lint): whitespace --------- Co-authored-by: Kalista Payne <sabrecat@gmail.com>
This commit is contained in:
parent
836807aa1e
commit
bce07ec357
1 changed files with 5 additions and 3 deletions
|
|
@ -269,9 +269,11 @@ export default {
|
||||||
const loadingScreen = document.getElementById('loading-screen');
|
const loadingScreen = document.getElementById('loading-screen');
|
||||||
if (loadingScreen) document.body.removeChild(loadingScreen);
|
if (loadingScreen) document.body.removeChild(loadingScreen);
|
||||||
|
|
||||||
if (this.isStaticPage || !this.isUserLoggedIn) {
|
this.$router.onReady(() => {
|
||||||
this.hideLoadingScreen();
|
if (this.isStaticPage || !this.isUserLoggedIn) {
|
||||||
}
|
this.hideLoadingScreen();
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
hideLoadingScreen () {
|
hideLoadingScreen () {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue