mod: remove router.isReady

This commit is contained in:
张传龙 2022-04-01 16:39:26 +08:00
parent 33aaadba60
commit 8648f16ed8
2 changed files with 3 additions and 4 deletions

View File

@ -6,12 +6,12 @@ import { setupRouter } from '@/router'
import { setupStore } from '@/store' import { setupStore } from '@/store'
import App from './App.vue' import App from './App.vue'
async function setupApp() { function setupApp() {
const app = createApp(App) const app = createApp(App)
setupStore(app) setupStore(app)
await setupRouter(app) setupRouter(app)
app.mount('#app') app.mount('#app')
} }

View File

@ -18,8 +18,7 @@ export function resetRouter() {
}) })
} }
export async function setupRouter(app) { export function setupRouter(app) {
app.use(router) app.use(router)
setupRouterGuard(router) setupRouterGuard(router)
await router.isReady()
} }