|
|
@@ -47,13 +47,6 @@ export const constantRoutes = [
|
|
|
component: () => import('@/views/login/index'),
|
|
|
hidden: true
|
|
|
},
|
|
|
-
|
|
|
- {
|
|
|
- path: '/404',
|
|
|
- component: () => import('@/views/404'),
|
|
|
- hidden: true
|
|
|
- },
|
|
|
-
|
|
|
{
|
|
|
path: '/',
|
|
|
component: Layout,
|
|
|
@@ -168,7 +161,12 @@ export const constantRoutes = [
|
|
|
// },
|
|
|
|
|
|
// 404 page must be placed at the end !!!
|
|
|
- { path: '*', redirect: '/404', hidden: true }
|
|
|
+ {
|
|
|
+ path: '/404',
|
|
|
+ component: () => import('@/views/404'),
|
|
|
+ hidden: true
|
|
|
+ }
|
|
|
+
|
|
|
]
|
|
|
export const asyncRoutes = [
|
|
|
{
|
|
|
@@ -186,42 +184,45 @@ export const asyncRoutes = [
|
|
|
path: 'dept',
|
|
|
component: () => import('@/views/sys/dept/index'), // Parent router-view
|
|
|
name: 'dept',
|
|
|
- meta: { title: '部门数据', pages: ['pc:sys:dept:list'], icon: 'el-icon-collection-tag' }
|
|
|
+ meta: { title: '部门数据', pages: ['pc:system:dept:list'], icon: 'el-icon-collection-tag' }
|
|
|
},
|
|
|
{
|
|
|
path: 'role',
|
|
|
component: () => import('@/views/sys/role/index'), // Parent router-view
|
|
|
name: 'role',
|
|
|
- meta: { title: '职务管理', pages: ['pc:sys:role:list'], icon: 'el-icon-collection-tag' }
|
|
|
+ meta: { title: '职务管理', pages: ['pc:system:role:list'], icon: 'el-icon-collection-tag' }
|
|
|
},
|
|
|
{
|
|
|
path: 'user',
|
|
|
component: () => import('@/views/sys/user/index'), // Parent router-view
|
|
|
name: 'user',
|
|
|
- meta: { title: '职工管理', pages: ['pc:sys:user:list'], icon: 'el-icon-collection-tag' }
|
|
|
+ meta: { title: '职工管理', pages: ['pc:system:user:list'], icon: 'el-icon-collection-tag' }
|
|
|
},
|
|
|
{
|
|
|
path: 'dict',
|
|
|
component: () => import('@/views/sys/dict/index'), // Parent router-view
|
|
|
name: 'dict',
|
|
|
- meta: { title: '字典管理', pages: ['pc:sys:dict:list'], icon: 'el-icon-collection-tag' }
|
|
|
+ meta: { title: '字典管理', pages: ['pc:system:dict:list'], icon: 'el-icon-collection-tag' }
|
|
|
},
|
|
|
{
|
|
|
path: 'menu',
|
|
|
component: () => import('@/views/sys/menu/index'), // Parent router-view
|
|
|
name: 'menu',
|
|
|
- meta: { title: '菜单管理', pages: ['pc:sys:menu:list'], icon: 'el-icon-collection-tag' }
|
|
|
+ meta: { title: '菜单管理', pages: ['pc:system:menu:list'], icon: 'el-icon-collection-tag' }
|
|
|
},
|
|
|
{
|
|
|
path: 'log',
|
|
|
component: () => import('@/views/sys/log/index'), // Parent router-view
|
|
|
name: 'log',
|
|
|
- meta: { title: '日志管理', pages: ['pc:sys:operlog:list'], icon: 'el-icon-collection-tag' }
|
|
|
+ meta: { title: '日志管理', pages: ['pc:system:operlog:list'], icon: 'el-icon-collection-tag' }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- // 404 page must be placed at the end !!!
|
|
|
- { path: '*', redirect: '/404', hidden: true }
|
|
|
+ {
|
|
|
+ path: '*',
|
|
|
+ redirect: '/404',
|
|
|
+ hidden: true
|
|
|
+ }
|
|
|
]
|
|
|
const createRouter = () => new Router({
|
|
|
mode: 'history', // require service support
|