|
@@ -7,8 +7,8 @@ Vue.use(Router)
|
|
import Layout from '@/layout'
|
|
import Layout from '@/layout'
|
|
|
|
|
|
/* Router Modules */
|
|
/* Router Modules */
|
|
-// import componentsRouter from './modules/components'
|
|
|
|
-// import chartsRouter from './modules/charts'
|
|
|
|
|
|
+import sysRouter from './modules/sys'
|
|
|
|
+import wechatRouter from './modules/wechat'
|
|
// import tableRouter from './modules/table'
|
|
// import tableRouter from './modules/table'
|
|
// import nestedRouter from './modules/nested'
|
|
// import nestedRouter from './modules/nested'
|
|
|
|
|
|
@@ -99,91 +99,8 @@ export const constantRoutes = [
|
|
* the routes that need to be dynamically loaded based on user roles
|
|
* the routes that need to be dynamically loaded based on user roles
|
|
*/
|
|
*/
|
|
export const asyncRoutes = [
|
|
export const asyncRoutes = [
|
|
- {
|
|
|
|
- path: '/sys',
|
|
|
|
- component: Layout,
|
|
|
|
- redirect: '/sys/menus',
|
|
|
|
- alwaysShow: true, // will always show the root menu
|
|
|
|
- name: 'SysSetting',
|
|
|
|
- meta: { title: '系统设置', icon: 'el-icon-s-tools' },
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- path: 'menus',
|
|
|
|
- component: () => import('@/views/sys/menus/index'),
|
|
|
|
- redirect: '/sys/menus/list',
|
|
|
|
- name: 'SysMenus',
|
|
|
|
- meta: { title: '菜单管理', icon: 'el-icon-menu' },
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- path: 'list',
|
|
|
|
- hidden: true,
|
|
|
|
- component: () => import('@/views/sys/menus/list.vue'),
|
|
|
|
- name: 'SysMenuList',
|
|
|
|
- meta: { title: '菜单列表' }
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: 'form',
|
|
|
|
- hidden: true,
|
|
|
|
- component: () => import('@/views/sys/menus/form.vue'),
|
|
|
|
- name: 'SysMenuForm',
|
|
|
|
- meta: { title: '菜单编辑' }
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: 'roles',
|
|
|
|
- component: () => import('@/views/sys/roles/index'),
|
|
|
|
- redirect: '/sys/roles/list',
|
|
|
|
- name: 'SysRoles',
|
|
|
|
- meta: { title: '角色列表', icon: 'lock' },
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- path: 'list',
|
|
|
|
- hidden: true,
|
|
|
|
- component: () => import('@/views/sys/roles/list.vue'),
|
|
|
|
- name: 'SysRoles',
|
|
|
|
- meta: { title: '角色列表' }
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: 'form',
|
|
|
|
- hidden: true,
|
|
|
|
- component: () => import('@/views/sys/roles/form.vue'),
|
|
|
|
- name: 'SysRoles',
|
|
|
|
- meta: { title: '添加角色' }
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: 'users',
|
|
|
|
- component: () => import('@/views/sys/users/index'),
|
|
|
|
- redirect: '/sys/users/list',
|
|
|
|
- name: 'SysUsers',
|
|
|
|
- meta: { title: '用户列表', icon: 'user' },
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- path: 'list',
|
|
|
|
- hidden: true,
|
|
|
|
- component: () => import('@/views/sys/users/list.vue'),
|
|
|
|
- name: 'SysUsers',
|
|
|
|
- meta: { title: '角色列表' }
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: 'form',
|
|
|
|
- hidden: true,
|
|
|
|
- component: () => import('@/views/sys/users/form.vue'),
|
|
|
|
- name: 'SysUsers',
|
|
|
|
- meta: { title: '添加用户' }
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: 'icons',
|
|
|
|
- component: () => import('@/views/sys/icons/index'),
|
|
|
|
- name: 'SysIcons',
|
|
|
|
- meta: { title: '系统图标', icon: 'el-icon-picture', noCache: true }
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- }
|
|
|
|
|
|
+ sysRouter,
|
|
|
|
+ wechatRouter
|
|
/** when your routing map is too long, you can split it into small modules **/
|
|
/** when your routing map is too long, you can split it into small modules **/
|
|
// componentsRouter,
|
|
// componentsRouter,
|
|
// chartsRouter,
|
|
// chartsRouter,
|