We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40eeb55 commit 6ff36d8Copy full SHA for 6ff36d8
src/main.js
@@ -52,7 +52,7 @@ router.beforeEach((to, from, next) => {
52
const roles = res.data.role;
53
store.dispatch('GenerateRoutes', { roles }).then(() => { // 生成可访问的路由表
54
router.addRoutes(store.getters.addRouters) // 动态添加可访问路由表
55
- next(to); // hack方法 确保addRoutes已完成
+ next(to.path); // hack方法 确保addRoutes已完成
56
})
57
}).catch(err => {
58
console.log(err);
0 commit comments