|
@@ -8,37 +8,21 @@ const userRouter = {
|
|
|
redirect: '/user/club',
|
|
|
alwaysShow: true, // will always show the root menu
|
|
|
name: 'userSetting', // name必须和后台配置一致,不然匹配不到
|
|
|
- meta: { title: '用户管理' },
|
|
|
+ meta: { title: '用户管理', icon: 'user' },
|
|
|
children: [
|
|
|
- {
|
|
|
- path: 'club',
|
|
|
- name: 'UserClubMenu',
|
|
|
- redirect: '/user/club/list',
|
|
|
- alwaysShow: true,
|
|
|
- component: () => import('@/views/index'),
|
|
|
- meta: { title: '机构管理' },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'list',
|
|
|
- name: 'ClubList',
|
|
|
- component: () => import('@/views/user/club/list'),
|
|
|
- meta: { title: '机构列表' }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
{
|
|
|
path: 'record',
|
|
|
- name: 'UserRecordMenu',
|
|
|
- redirect: '/user/record/list',
|
|
|
- alwaysShow: true,
|
|
|
component: () => import('@/views/index'),
|
|
|
- meta: { title: '用户行为记录' },
|
|
|
+ redirect: '/user/record/list',
|
|
|
+ name: 'UserRecordMenu',
|
|
|
+ meta: { title: '用户行为记录', icon: 'international' },
|
|
|
children: [
|
|
|
{
|
|
|
path: 'list',
|
|
|
- name: 'RecordList',
|
|
|
+ hidden: true,
|
|
|
component: () => import('@/views/user/record/list'),
|
|
|
- meta: { title: '用户行为记录' }
|
|
|
+ name: 'RecordList',
|
|
|
+ meta: { title: '用户行为记录', activeMenu: '/user/record' }
|
|
|
},
|
|
|
{
|
|
|
path: 'detail',
|
|
@@ -49,6 +33,22 @@ const userRouter = {
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ {
|
|
|
+ path: 'club',
|
|
|
+ name: 'UserClubMenu',
|
|
|
+ redirect: '/user/club/list',
|
|
|
+ alwaysShow: true,
|
|
|
+ component: () => import('@/views/index'),
|
|
|
+ meta: { title: '机构管理' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'list',
|
|
|
+ name: 'ClubList',
|
|
|
+ component: () => import('@/views/user/club/list'),
|
|
|
+ meta: { title: '机构列表' }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
{
|
|
|
path: 'supplier',
|
|
|
name: 'UserSupplierMenu',
|