restructure/mock/system/router.js

50 lines
916 B
JavaScript
Raw Normal View History

2022-05-18 17:35:46 +08:00
const asyncRoutes = [
{
path: '/system',
component: 'Layout',
redirect: '/system/menu',
name: 'System',
meta: {
title: '系统管理'
},
children: [
{
path: 'menu',
component: 'views/system/menu/index',
name: 'SystemMenu',
meta: {
title: '菜单管理'
}
},
{
path: 'user',
component: 'views/system/user/index',
name: 'SystemUser',
meta: {
2022-05-19 09:04:05 +08:00
title: '用户管理'
2022-05-18 17:35:46 +08:00
}
},
{
path: 'role',
component: 'views/system/role/index',
name: 'SystemRole',
meta: {
title: '角色管理'
}
2022-05-20 08:33:42 +08:00
},
{
path: 'dept',
component: 'views/system/dept/index',
name: 'SystemDept',
meta: {
title: '部门管理'
}
2022-05-18 17:35:46 +08:00
}
]
}
]
module.exports = {
asyncRoutes
}