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 04261f7 commit 5401689Copy full SHA for 5401689
src/main.js
@@ -53,7 +53,7 @@ router.beforeEach((to, from, next) => {
53
const roles = res.data.role;
54
store.dispatch('GenerateRoutes', { roles }).then(() => { // 生成可访问的路由表
55
router.addRoutes(store.getters.addRouters) // 动态添加可访问路由表
56
- next(Object.assign({}, to)); // hack方法 确保addRoutes已完成
+ next({ ...to }); // hack方法 确保addRoutes已完成
57
})
58
59
} else {
0 commit comments