| | |
| | | import groupManage from '../views/userManage/groupManage.vue'; // 用户管理模块 |
| | | import authorityManage from '@/views/userManage/authorityManage.vue'; //用户管理-权限管理 |
| | | import resourceManage from '@/views/userManage/resourceManage.vue'; //用户管理-资源管理 |
| | | import userRoleAuthorization from '@/views/AuthorizationManagement/userRoleAuthorization.vue'; //系统管理- |
| | | const originalPush = VueRouter.prototype.push |
| | | import userRoleAuthorization from '@/views/AuthorizationManagement/userRoleAuthorization.vue'; //系统管理-用户角色授权 |
| | | |
| | | import menuRoleAuthorization from '@/views/AuthorizationManagement/menuRoleAuthorization.vue'; //系统管理-菜单权限授权 |
| | | import roleResAuthorization from '@/views/AuthorizationManagement/roleResAuthorization.vue'; //系统管理-角色资源授权 |
| | | |
| | | const originalPush = VueRouter.prototype.push; |
| | | |
| | | VueRouter.prototype.push = function push(location) { |
| | | |
| | | return originalPush.call(this, location).catch(err => err) |
| | | |
| | | } |
| | | return originalPush.call(this, location).catch((err) => err); |
| | | }; |
| | | |
| | | // 群组管理 |
| | | Vue.use(VueRouter); |
| | |
| | | requireAuth: true, // 标识该路由是否需要登录 |
| | | }, |
| | | }, |
| | | |
| | | { |
| | | path: '/menuRoleAuthorization', |
| | | component: menuRoleAuthorization, |
| | | name: 'menuRoleAuthorization', |
| | | meta: { |
| | | title: '菜单权限授权', |
| | | requireAuth: true, // 标识该路由是否需要登录 |
| | | }, |
| | | }, |
| | | { |
| | | path: '/roleResAuthorization', |
| | | component: roleResAuthorization, |
| | | name: 'roleResAuthorization', |
| | | meta: { |
| | | title: '菜单权限授权', |
| | | requireAuth: true, // 标识该路由是否需要登录 |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | ]; |