mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01: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:
@@ -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 () {
|
||||||
|
|||||||
Reference in New Issue
Block a user