1
2
3
4
5
6
7
8
9
10
11
12
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
| // 路由配置文件
| import Layout from '@/layout'
|
| export default {
| path: '/system',
| component: Layout,
| redirect: '/system/role',
| name: 'system',
| meta: {
| title: '系统管理',
| icon: 'system'
| },
| children: [
| {
| path: 'admin',
| component: () => import('@/pages/system/admin'), // Parent router-view
| name: 'systemAdmin',
| meta: { title: '管理员管理' },
| auth: 'sys_admin_see'
| },
| {
| path: 'role',
| component: () => import('@/pages/system/role'),
| name: 'systemRole',
| meta: { title: '角色管理' },
| auth: 'sys_admin_role_see'
| },
| {
| path: 'banner',
| component: () => import('@/pages/system/banner'),
| name: 'systemBanner',
| meta: { title: '轮播图管理', keepAlive: true },
| auth: 'banner_see'
| },
| {
| path: 'basic',
| component: () => import('@/pages/system/basic'),
| name: 'systemBasic',
| meta: { title: '基础设置' },
| auth: 'system_set'
| },
| {
| path: 'roleAdd',
| component: () => import('@/pages/system/roleAdd'),
| name: 'systemRoleAdd',
| meta: { title: '新增角色', noCache: true, activeMenu: '/system/role' },
| hidden: true
| },
| {
| path: 'roleEdit',
| component: () => import('@/pages/system/roleEdit'),
| name: 'systemRoleEdit',
| meta: { title: '编辑角色', noCache: true, activeMenu: '/system/role' },
| hidden: true
| }
| ]
| }
|
|