diff --git a/src/main.js b/src/main.js index af20cf7..181529f 100644 --- a/src/main.js +++ b/src/main.js @@ -6,12 +6,12 @@ import { setupRouter } from '@/router' import { setupStore } from '@/store' import App from './App.vue' -async function setupApp() { +function setupApp() { const app = createApp(App) setupStore(app) - await setupRouter(app) + setupRouter(app) app.mount('#app') } diff --git a/src/router/index.js b/src/router/index.js index e24aa3c..f9c53c9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -18,8 +18,7 @@ export function resetRouter() { }) } -export async function setupRouter(app) { +export function setupRouter(app) { app.use(router) setupRouterGuard(router) - await router.isReady() }