|
|
@@ -156,6 +156,21 @@ export const constantRoutes = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ // {
|
|
|
+ // path: 'external-link',
|
|
|
+ // component: Layout,
|
|
|
+ // children: [
|
|
|
+ // {
|
|
|
+ // path: 'https://baidu.com',
|
|
|
+ // meta: { title: '外链', icon: 'link' }
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
+ // },
|
|
|
+
|
|
|
+ // 404 page must be placed at the end !!!
|
|
|
+ { path: '*', redirect: '/404', hidden: true }
|
|
|
+]
|
|
|
+export const asyncRoutes = [
|
|
|
{
|
|
|
path: '/sys',
|
|
|
component: Layout,
|
|
|
@@ -163,6 +178,7 @@ export const constantRoutes = [
|
|
|
name: 'sys',
|
|
|
meta: {
|
|
|
title: '系统管理',
|
|
|
+ // pages: ['pc:sys'],
|
|
|
icon: 'el-icon-setting'
|
|
|
},
|
|
|
children: [
|
|
|
@@ -170,72 +186,40 @@ export const constantRoutes = [
|
|
|
path: 'dept',
|
|
|
component: () => import('@/views/sys/dept/index'), // Parent router-view
|
|
|
name: 'dept',
|
|
|
- meta: { title: '部门数据', icon: 'el-icon-collection-tag' }
|
|
|
+ meta: { title: '部门数据', pages: ['pc:sys:dept:list'], icon: 'el-icon-collection-tag' }
|
|
|
},
|
|
|
{
|
|
|
path: 'job',
|
|
|
component: () => import('@/views/sys/job/index'), // Parent router-view
|
|
|
name: 'job',
|
|
|
- meta: { title: '职务管理', icon: 'el-icon-collection-tag' }
|
|
|
+ meta: { title: '职务管理', pages: ['pc:sys:role:list'], icon: 'el-icon-collection-tag' }
|
|
|
},
|
|
|
{
|
|
|
path: 'worker',
|
|
|
component: () => import('@/views/sys/worker/index'), // Parent router-view
|
|
|
name: 'worker',
|
|
|
- meta: { title: '职工管理', icon: 'el-icon-collection-tag' }
|
|
|
+ meta: { title: '职工管理', pages: ['pc:sys:user:list'], icon: 'el-icon-collection-tag' }
|
|
|
},
|
|
|
{
|
|
|
path: 'dict',
|
|
|
component: () => import('@/views/sys/dict/index'), // Parent router-view
|
|
|
name: 'dict',
|
|
|
- meta: { title: '字典管理', icon: 'el-icon-collection-tag' }
|
|
|
+ meta: { title: '字典管理', pages: ['pc:sys:dict:list'], icon: 'el-icon-collection-tag' }
|
|
|
},
|
|
|
{
|
|
|
path: 'menu',
|
|
|
component: () => import('@/views/sys/menu/index'), // Parent router-view
|
|
|
name: 'menu',
|
|
|
- meta: { title: '菜单管理', icon: 'el-icon-collection-tag' }
|
|
|
+ meta: { title: '菜单管理', pages: ['pc:sys:menu:list'], icon: 'el-icon-collection-tag' }
|
|
|
},
|
|
|
{
|
|
|
path: 'log',
|
|
|
component: () => import('@/views/sys/log/index'), // Parent router-view
|
|
|
name: 'log',
|
|
|
- meta: { title: '日志管理', icon: 'el-icon-collection-tag' }
|
|
|
+ meta: { title: '日志管理', pages: ['pc:sys:operlog:list'], icon: 'el-icon-collection-tag' }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- // {
|
|
|
- // path: 'external-link',
|
|
|
- // component: Layout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'https://baidu.com',
|
|
|
- // meta: { title: '外链', icon: 'link' }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
-
|
|
|
- // 404 page must be placed at the end !!!
|
|
|
- { path: '*', redirect: '/404', hidden: true }
|
|
|
-]
|
|
|
-export const asyncRoutes = [
|
|
|
-
|
|
|
- // {
|
|
|
- // path: '/form',
|
|
|
- // component: Layout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index',
|
|
|
- // name: 'Form',
|
|
|
- // component: () => import('@/views/form/index'),
|
|
|
- // meta: {
|
|
|
- // title: '权限-表单',
|
|
|
- // icon: 'form',
|
|
|
- // roles: ['admin'] // you can set roles in root nav
|
|
|
- // }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
// 404 page must be placed at the end !!!
|
|
|
{ path: '*', redirect: '/404', hidden: true }
|
|
|
]
|