From 8648f16ed81960b02edd996c2dde43c9e41a9954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Fri, 1 Apr 2022 16:39:26 +0800 Subject: [PATCH] mod: remove router.isReady --- src/main.js | 4 ++-- src/router/index.js | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) 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() }