diff --git a/src/main.js b/src/main.js index c3ca48e..af20cf7 100644 --- a/src/main.js +++ b/src/main.js @@ -13,7 +13,7 @@ async function setupApp() { await setupRouter(app) - app.mount('#app', true) + app.mount('#app') } setupApp() diff --git a/src/router/guard/pageLoadingGuard.js b/src/router/guard/pageLoadingGuard.js index 80c0447..bd0f038 100644 --- a/src/router/guard/pageLoadingGuard.js +++ b/src/router/guard/pageLoadingGuard.js @@ -1,15 +1,15 @@ export function createPageLoadingGuard(router) { router.beforeEach(() => { - $loadingBar.start() + window.$loadingBar?.start() }) router.afterEach(() => { setTimeout(() => { - $loadingBar.finish() + window.$loadingBar?.finish() }, 200) }) router.onError(() => { - $loadingBar.error() + window.$loadingBar?.error() }) }