lz 3 năm trước cách đây
mục cha
commit
12849bf2fb
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      src/permission.js

+ 0 - 1
src/permission.js

@@ -24,7 +24,6 @@ router.beforeEach((to, from, next) => {
 					.dispatch('GetInfo')
 					.then(() => {
 						store.dispatch('GenerateRoutes').then((accessRoutes) => {
-							next()
 							// 根据roles权限生成可访问的路由表
 							router.addRoutes(accessRoutes) // 动态添加可访问路由表
 							next({ ...to, replace: true }) // hack方法 确保addRoutes已完成