group.js 782 Bytes
Newer Older
Davve's avatar
Davve committed
1 2 3 4 5 6 7 8 9 10 11

import Layout from '@/views/layout/Layout'


const GroupRouter = {
  path: '/group',
  component: Layout,
  redirect: '/group/list',
  name: 'Group',
  meta: {
    title: '小组管理',
Davve's avatar
Davve committed
12
    icon: 'component'
Davve's avatar
Davve committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/group/list'),
      name: 'GroupList',
      meta: {title: '小组列表', icon: 'list'}
    },
    {
      path: 'create',
      component: () => import('@/views/group/create'),
      name: 'CreateGroup',
      meta: {title: '创建小组', icon: 'edit'}
    },
    {
      path: 'edit/:id(\\d+)',
      component: () => import('@/views/group/edit'),
      name: 'EditGroup',
      meta: {title: '编辑小组', noCache: true},
      hidden: true
    }
  ]
}

export default GroupRouter