mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +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');
|
||||
if (loadingScreen) document.body.removeChild(loadingScreen);
|
||||
|
||||
if (this.isStaticPage || !this.isUserLoggedIn) {
|
||||
this.hideLoadingScreen();
|
||||
}
|
||||
this.$router.onReady(() => {
|
||||
if (this.isStaticPage || !this.isUserLoggedIn) {
|
||||
this.hideLoadingScreen();
|
||||
}
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
hideLoadingScreen () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue