|
@@ -19,12 +19,12 @@ Vue.use(Router)
|
|
|
* roles: ['admin', 'common'] // 访问路由的角色权限
|
|
|
* permissions: ['a:a:a', 'b:b:b'] // 访问路由的菜单权限
|
|
|
* meta : {
|
|
|
- noCache: true // 如果设置为true,则不会被 <keep-alive> 缓存(默认 false)
|
|
|
- title: 'title' // 设置该路由在侧边栏和面包屑中展示的名字
|
|
|
- icon: 'svg-name' // 设置该路由的图标,对应路径src/assets/icons/svg
|
|
|
- breadcrumb: false // 如果设置为false,则不会在breadcrumb面包屑中显示
|
|
|
- activeMenu: '/system/user' // 当路由设置了该属性,则会高亮相对应的侧边栏。
|
|
|
- }
|
|
|
+ noCache: true // 如果设置为true,则不会被 <keep-alive> 缓存(默认 false)
|
|
|
+ title: 'title' // 设置该路由在侧边栏和面包屑中展示的名字
|
|
|
+ icon: 'svg-name' // 设置该路由的图标,对应路径src/assets/icons/svg
|
|
|
+ breadcrumb: false // 如果设置为false,则不会在breadcrumb面包屑中显示
|
|
|
+ activeMenu: '/system/user' // 当路由设置了该属性,则会高亮相对应的侧边栏。
|
|
|
+ }
|
|
|
*/
|
|
|
|
|
|
// 公共路由
|
|
@@ -45,11 +45,16 @@ export const constantRoutes = [
|
|
|
component: () => import('@/views/login'),
|
|
|
hidden: true
|
|
|
},
|
|
|
- {
|
|
|
- path: '/bd',
|
|
|
- component: () => import('@/views/bd/index'),
|
|
|
- hidden: true,
|
|
|
- },
|
|
|
+ {
|
|
|
+ path: '/bd',
|
|
|
+ component: () => import('@/views/bd/index'),
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/digital-screen',
|
|
|
+ component: () => import('@/views/cons/screen/index'),
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
{
|
|
|
path: '/register',
|
|
|
component: () => import('@/views/register'),
|
|
@@ -74,7 +79,7 @@ export const constantRoutes = [
|
|
|
path: 'index',
|
|
|
component: () => import('@/views/index'),
|
|
|
name: 'Index',
|
|
|
- meta: { title: '首页', icon: 'dashboard', affix: true }
|
|
|
+ meta: {title: '首页', icon: 'dashboard', affix: true}
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -88,7 +93,7 @@ export const constantRoutes = [
|
|
|
path: 'profile',
|
|
|
component: () => import('@/views/system/user/profile/index'),
|
|
|
name: 'Profile',
|
|
|
- meta: { title: '个人中心', icon: 'user' }
|
|
|
+ meta: {title: '个人中心', icon: 'user'}
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -106,7 +111,7 @@ export const dynamicRoutes = [
|
|
|
path: 'role/:userId(\\d+)',
|
|
|
component: () => import('@/views/system/user/authRole'),
|
|
|
name: 'AuthRole',
|
|
|
- meta: { title: '分配角色', activeMenu: '/system/user' }
|
|
|
+ meta: {title: '分配角色', activeMenu: '/system/user'}
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -120,7 +125,7 @@ export const dynamicRoutes = [
|
|
|
path: 'user/:roleId(\\d+)',
|
|
|
component: () => import('@/views/system/role/authUser'),
|
|
|
name: 'AuthUser',
|
|
|
- meta: { title: '分配用户', activeMenu: '/system/role' }
|
|
|
+ meta: {title: '分配用户', activeMenu: '/system/role'}
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -134,7 +139,7 @@ export const dynamicRoutes = [
|
|
|
path: 'index/:dictId(\\d+)',
|
|
|
component: () => import('@/views/system/dict/data'),
|
|
|
name: 'Data',
|
|
|
- meta: { title: '字典数据', activeMenu: '/system/dict' }
|
|
|
+ meta: {title: '字典数据', activeMenu: '/system/dict'}
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -148,7 +153,7 @@ export const dynamicRoutes = [
|
|
|
path: 'index/:jobId(\\d+)',
|
|
|
component: () => import('@/views/monitor/job/log'),
|
|
|
name: 'JobLog',
|
|
|
- meta: { title: '调度日志', activeMenu: '/monitor/job' }
|
|
|
+ meta: {title: '调度日志', activeMenu: '/monitor/job'}
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -162,7 +167,7 @@ export const dynamicRoutes = [
|
|
|
path: 'index/:tableId(\\d+)',
|
|
|
component: () => import('@/views/tool/gen/editTable'),
|
|
|
name: 'GenEdit',
|
|
|
- meta: { title: '修改生成配置', activeMenu: '/tool/gen' }
|
|
|
+ meta: {title: '修改生成配置', activeMenu: '/tool/gen'}
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -182,6 +187,6 @@ Router.prototype.replace = function push(location) {
|
|
|
|
|
|
export default new Router({
|
|
|
mode: 'history', // 去掉url中的#
|
|
|
- scrollBehavior: () => ({ y: 0 }),
|
|
|
+ scrollBehavior: () => ({y: 0}),
|
|
|
routes: constantRoutes
|
|
|
})
|