feat 后台管理动态路由
This commit is contained in:
@@ -27,92 +27,93 @@ import Layout from '@/layout/index.vue';
|
|||||||
// 公共路由
|
// 公共路由
|
||||||
export const constantRoutes: RouteRecordRaw[] = [
|
export const constantRoutes: RouteRecordRaw[] = [
|
||||||
/* ----------------------------------------自定义路由(查看)-------------------------------------------------------- */
|
/* ----------------------------------------自定义路由(查看)-------------------------------------------------------- */
|
||||||
|
// 以下路由已迁移至后端动态路由管理
|
||||||
// 设备管理
|
// 设备管理
|
||||||
{
|
// {
|
||||||
path: '/equipmentList',
|
// path: '/equipmentList',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
name: 'Equipment',
|
// name: 'Equipment',
|
||||||
redirect: '/equipmentList/list',
|
// redirect: '/equipmentList/list',
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
meta: { title: '设备管理', icon: 'equipment' },
|
// meta: { title: '设备管理', icon: 'equipment' },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'list',
|
// path: 'list',
|
||||||
name: 'EquipmentList',
|
// name: 'EquipmentList',
|
||||||
component: () => import('@/views/equipmentList/list.vue'),
|
// component: () => import('@/views/equipmentList/list.vue'),
|
||||||
meta: { title: '设备列表', icon: 'equipment' }
|
// meta: { title: '设备列表', icon: 'equipment' }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
//报警管理
|
// // 报警管理
|
||||||
{
|
// {
|
||||||
path: '/warningList',
|
// path: '/warningList',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
name: 'Warning',
|
// name: 'Warning',
|
||||||
redirect: '/warningList/list',
|
// redirect: '/warningList/list',
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
meta: { title: '报警管理', icon: 'warningList' },
|
// meta: { title: '报警管理', icon: 'warningList' },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'list',
|
// path: 'list',
|
||||||
name: 'WarningList',
|
// name: 'WarningList',
|
||||||
component: () => import('@/views/WarningList/list.vue'),
|
// component: () => import('@/views/WarningList/list.vue'),
|
||||||
meta: { title: '报警列表', icon: 'warningList' }
|
// meta: { title: '报警列表', icon: 'warningList' }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
//录像文件管理
|
// // 录像文件管理
|
||||||
{
|
// {
|
||||||
path: '/fileList',
|
// path: '/fileList',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
name: 'File',
|
// name: 'File',
|
||||||
redirect: '/fileList/list',
|
// redirect: '/fileList/list',
|
||||||
meta: { title: '录像文件管理', icon: 'fileList' },
|
// meta: { title: '录像文件管理', icon: 'fileList' },
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'list',
|
// path: 'list',
|
||||||
name: 'FileList',
|
// name: 'FileList',
|
||||||
component: () => import('@/views/fileList/list.vue'),
|
// component: () => import('@/views/fileList/list.vue'),
|
||||||
meta: { title: '录像列表', icon: 'fileList' }
|
// meta: { title: '录像列表', icon: 'fileList' }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
//系统设置
|
// // 系统设置
|
||||||
{
|
// {
|
||||||
path: '/systemList',
|
// path: '/systemList',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
name: 'system',
|
// name: 'system',
|
||||||
redirect: '/systemList/base',
|
// redirect: '/systemList/base',
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
meta: { title: '系统设置', icon: 'systemList' },
|
// meta: { title: '系统设置', icon: 'systemList' },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'base',
|
// path: 'base',
|
||||||
name: 'Base',
|
// name: 'Base',
|
||||||
component: () => import('@/views/systemList/base/base.vue'),
|
// component: () => import('@/views/systemList/base/base.vue'),
|
||||||
meta: { title: '基础设置', icon: 'base' }
|
// meta: { title: '基础设置', icon: 'base' }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'password',
|
// path: 'password',
|
||||||
name: 'Password',
|
// name: 'Password',
|
||||||
component: () => import('@/views/systemList/password/password.vue'),
|
// component: () => import('@/views/systemList/password/password.vue'),
|
||||||
meta: { title: '修改密码', icon: 'password' }
|
// meta: { title: '修改密码', icon: 'password' }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'role',
|
// path: 'role',
|
||||||
name: 'Role',
|
// name: 'Role',
|
||||||
component: () => import('@/views/systemList/role/role.vue'),
|
// component: () => import('@/views/systemList/role/role.vue'),
|
||||||
meta: { title: '角色配置', icon: 'role' }
|
// meta: { title: '角色配置', icon: 'role' }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'user',
|
// path: 'user',
|
||||||
name: 'User',
|
// name: 'User',
|
||||||
component: () => import('@/views/systemList/user/user.vue'),
|
// component: () => import('@/views/systemList/user/user.vue'),
|
||||||
meta: { title: '用户配置', icon: 'user' }
|
// meta: { title: '用户配置', icon: 'user' }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
/* ----------------------------------------自带路由配置-------------------------------------------------------- */
|
/* ----------------------------------------自带路由配置-------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
path: '/redirect',
|
path: '/redirect',
|
||||||
|
|||||||
Reference in New Issue
Block a user