From bce07ec357722d3c519c0cd6591d56b100cfeb6d Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Mon, 16 Jun 2025 18:48:37 +0200 Subject: [PATCH] wait for vue router to be ready (#15456) * wait for vue router to be ready * fix(lint): whitespace --------- Co-authored-by: Kalista Payne --- website/client/src/app.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/website/client/src/app.vue b/website/client/src/app.vue index 245e75706f..2b1215b6df 100644 --- a/website/client/src/app.vue +++ b/website/client/src/app.vue @@ -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 () {