feat: router 准备就绪后再挂载 (#71)

This commit is contained in:
李成元 2023-04-14 14:39:19 +08:00 committed by GitHub
parent 55569f791c
commit ae96836baa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,4 +26,7 @@ loadSvg(app)
/** 加载自定义指令 */
loadDirectives(app)
app.use(store).use(router).mount("#app")
app.use(store).use(router)
router.isReady().then(() => {
app.mount("#app")
})