fix: 用户管理刷新页面后未选中系统管理菜单

This commit is contained in:
fit2cloud-chenyw 2021-06-24 09:47:59 +08:00
parent 2a2de5f829
commit fe13a2e542

View File

@ -69,9 +69,9 @@ export const filterAsyncRouter = (routers) => { // 遍历后台传来的路由
// 后台设计时未考虑activeMenu字段 这里先前端处理一下
export const fillMeta = (router) => {
router.name.includes('system-user') && (router.meta.activeMenu = '/system/user')
router.name.includes('system-role') && (router.meta.activeMenu = '/system/role')
router.name.includes('system-dept') && (router.meta.activeMenu = '/system/dept')
router.name.includes('system-user-form') && (router.meta.activeMenu = '/system/user')
router.name.includes('system-role-form') && (router.meta.activeMenu = '/system/role')
router.name.includes('system-dept-form') && (router.meta.activeMenu = '/system/dept')
// return router
}