提交 7efffb9f 编写于 作者: Pan's avatar Pan

refine code

上级 2e13d611
......@@ -28,11 +28,9 @@ router.beforeEach((to, from, next) => {
const roles = res.data.role;
store.dispatch('GenerateRoutes', { roles }).then(() => {
router.addRoutes(store.getters.addRouters)
next(to.path);
next(Object.assign({}, to));
})
}).catch(err => {
console.log(err);
});
})
} else {
next();
}
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或