|
@@ -53,74 +53,14 @@ export const constantRoutes = [
|
|
component: () => import('@/views/dashboard/index'),
|
|
component: () => import('@/views/dashboard/index'),
|
|
meta: {title: 'Dashboard', icon: 'dashboard'}
|
|
meta: {title: 'Dashboard', icon: 'dashboard'}
|
|
}]
|
|
}]
|
|
- },
|
|
|
|
-
|
|
|
|
- {
|
|
|
|
- path:'/weekly',
|
|
|
|
- name: 'Weekly',
|
|
|
|
- component:()=>import('@/views/meeting/weekly')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/weeklyRecords',
|
|
|
|
- name: 'WeeklyRecords',
|
|
|
|
- component:()=>import('@/views/meeting/weeklyRecords')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/enforceflow',
|
|
|
|
- name: 'EnforceFlow',
|
|
|
|
- component:()=>import('@/views/enforceflow/enforceflow')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/enforceflowdetail',
|
|
|
|
- name: 'EnforceFlowDetail',
|
|
|
|
- component:()=>import('@/views/enforceflow/enforceflowdetail')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: '/workbench',
|
|
|
|
- name: 'Workbench',
|
|
|
|
- component:()=>import('@/views/workbench/workbench')
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- // {
|
|
|
|
- // path: '/system',
|
|
|
|
- // component: Layout,
|
|
|
|
- // redirect: '/system/menu',
|
|
|
|
- // name: '系统管理',
|
|
|
|
- // meta: {title: 'Example', icon: 'el-icon-s-help'},
|
|
|
|
- // children: [
|
|
|
|
- // {
|
|
|
|
- // path: 'menu',
|
|
|
|
- // name: '菜单管理',
|
|
|
|
- // component: () => import('@/views/system/menu'),
|
|
|
|
- // meta: {title: '菜单管理', icon: 'table'}
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // path: 'dept',
|
|
|
|
- // name: '部门管理',
|
|
|
|
- // component: () => import('@/views/system/dept'),
|
|
|
|
- // meta: {title: '部门管理', icon: 'task'}
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // path: 'role',
|
|
|
|
- // name: '角色管理',
|
|
|
|
- // component: () => import('@/views/system/role'),
|
|
|
|
- // meta: {title: '角色管理', icon: 'task'}
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // path: 'user',
|
|
|
|
- // name: '员工管理',
|
|
|
|
- // component: () => import('@/views/system/user'),
|
|
|
|
- // meta: {title: '员工管理', icon: 'task'}
|
|
|
|
- // }
|
|
|
|
- // ]
|
|
|
|
- // },
|
|
|
|
|
|
+ }
|
|
|
|
|
|
- // 404 page must be placed at the end !!!
|
|
|
|
- {path: '*', redirect: '/404', hidden: true}
|
|
|
|
]
|
|
]
|
|
|
|
|
|
// 动态路由,基于用户权限动态去加载
|
|
// 动态路由,基于用户权限动态去加载
|
|
-export const dynamicRoutes = []
|
|
|
|
|
|
+export const dynamicRoutes = [
|
|
|
|
+ {path: '*', redirect: '/404', hidden: true}
|
|
|
|
+]
|
|
|
|
|
|
// 防止连续点击多次路由报错
|
|
// 防止连续点击多次路由报错
|
|
let routerPush = Router.prototype.push;
|
|
let routerPush = Router.prototype.push;
|