布局框架搭建
This commit is contained in:
@@ -5,13 +5,51 @@
|
||||
const userRoutes = [
|
||||
{
|
||||
path: '/home',
|
||||
name: 'home',
|
||||
name: 'Home',
|
||||
component: 'home',
|
||||
meta: {
|
||||
title: 'dashboard',
|
||||
icon: 'DashboardOutlined',
|
||||
role: ['admin']
|
||||
title: '首页',
|
||||
icon: 'HomeOutlined',
|
||||
affix: true,
|
||||
noCache: false
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/system',
|
||||
name: 'System',
|
||||
meta: {
|
||||
title: '系统管理',
|
||||
icon: 'SettingOutlined'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '/system/user',
|
||||
name: 'SystemUser',
|
||||
component: 'system/user',
|
||||
meta: {
|
||||
title: '用户管理',
|
||||
icon: 'UserOutlined'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/system/role',
|
||||
name: 'SystemRole',
|
||||
component: 'system/role',
|
||||
meta: {
|
||||
title: '角色管理',
|
||||
icon: 'TeamOutlined'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/system/menu',
|
||||
name: 'SystemMenu',
|
||||
component: 'system/menu',
|
||||
meta: {
|
||||
title: '菜单管理',
|
||||
icon: 'MenuOutlined'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user