mod: remove router.isReady
This commit is contained in:
parent
33aaadba60
commit
8648f16ed8
@ -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')
|
||||||
}
|
}
|
||||||
|
@ -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()
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user