You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.0 KiB

// import Layout from '@/layout'
import Layout from '@/layout'
const userRouter = [
{
path: '/user',
redirect: '/user/info/index',
hidden: true,
meta: { classification: 'user' }
},
{
path: '/user/info',
component: Layout,
meta: { classification: 'user' },
children: [
{
path: 'index',
component: () => import('@/views/user/index'),
name: 'UserInfo',
meta: { title: '用户信息', icon: '用户信息', classification: 'user' }
}
]
},
{
path: '/user/role',
component: Layout,
meta: { classification: 'user' },
children: [
{
path: 'index',
component: () => import('@/views/user/role/index'),
name: 'Role',
meta: { title: '角色信息', icon: '角色信息', classification: 'user' }
}
]
},
{
path: '/user/gotohome',
redirect: '/home',
meta: { title: '返回主页', icon: 'el-icon-arrow-left', classification: 'user' }
}
]
export default userRouter