*/
export const constantRoutes = [
{
path: ‘/login’,
component: () => import(‘@/views/login/index’),
hidden: true
},
{
path: ‘/404’,
component: () => import(‘@/views/404’),
hidden: true
},
{
path: ‘/’,
component: Layout,
redirect: ‘/home’,
children: [{
path: ‘home’,
name: ‘Home’,
component: () => import(‘@/views/home/index’),
meta: { title: ‘AI业务培训管理系统’, icon: ‘’ }
}]
},
{
path: ‘/addrole’,
hidden: true,
component: Layout,
children: [
{
path: ‘index/:id’,
name: ‘Addrole’,
component: () => import(‘@/views/usermanage/addrole/index’),
meta: { title: ‘添加角色’, icon: ‘’ }
}
]
},
{
path: ‘/addaccount’,
hidden: true,
component: Layout,
children: [
{
path: ‘index/:id’,
name: ‘AddAccount’,
component: () => import(‘@/views/usermanage/addaccount/index’),
meta: { title: ‘添加账户’, icon: ‘’ }
}
]
},
{
path: ‘/addbanner’,
hidden: true,
component: Layout,
children: [
{
path: ‘index/:id’,
name: ‘AddBanner’,
component: () => import(‘@/views/appmanage/addbanner/index’),
meta: { title: ‘添加Banner’, icon: ‘’ }
}
]
},
{
path: ‘/createactivationcode’,
hidden: true,
component: Layout,
children: [
{
path: ‘index’,
name: ‘CreateActivationCode’,
component: () => import(‘@/views/vipmanage/createactivationcode/index’),
meta: { title: ‘生成激活码’, icon: ‘’ }
}
]
},
]
/**
- 放置服务器可配置的动态路由
*/
export const asyncRoutes = [
{
path: ‘/usermanagement’,
component: Layout,
redirect: ‘/usermanagement/rolemanagement’,
meta: { title: ‘用户管理’, icon: ‘user’ },
children: [
{
path: ‘rolemanagement’,
component: () => import(‘@/views/usermanage/rolemanagement/index’),
meta: { title: ‘角色管理’,