1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2026-01-23 08:00:22 +08:00

mod: 调整setupApp相关写法

This commit is contained in:
张传龙
2022-03-28 18:31:32 +08:00
parent dfcc8c2158
commit 437d87f19e
2 changed files with 7 additions and 6 deletions

View File

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