提交 a11af032 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

修复重启后断后页面白屏问题

上级 278635bf
......@@ -24,9 +24,7 @@ router.beforeEach(async (to, from, next) => {
asyncRouterFlag++
await store.dispatch('router/SetAsyncRouter')
const asyncRouters = store.getters['router/asyncRouters']
asyncRouters.forEach(item => {
router.addRoute(item)
})
router.addRoutes(asyncRouters)
next({ ...to, replace: true })
} else {
if (to.matched.length) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册