From 7da4cf0ad188bce681fefaf4a9cfdc7a709f6ca5 Mon Sep 17 00:00:00 2001 From: JaxxMoss Date: Fri, 16 May 2025 14:45:28 +0200 Subject: [PATCH] Update to main.js to wait for the router to be ready. --- ui/src/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/src/main.js b/ui/src/main.js index 2c0d3cc..7b522e0 100644 --- a/ui/src/main.js +++ b/ui/src/main.js @@ -31,7 +31,9 @@ import router from '@/router' const app = createApp(App) -app.use(createPinia()) app.use(router) +app.use(createPinia()) -app.mount('#app') +router.isReady().then(() => { + app.mount('#app') +})