提交 | 用户 | age
|
2a61f6
|
1 |
// 路由配置文件 |
L |
2 |
import Layout from '@/layout' |
|
3 |
|
|
4 |
export default { |
|
5 |
path: '/system', |
|
6 |
component: Layout, |
|
7 |
redirect: '/system/role', |
|
8 |
name: 'system', |
|
9 |
meta: { |
|
10 |
title: '系统管理', |
|
11 |
icon: 'system' |
|
12 |
}, |
|
13 |
children: [ |
|
14 |
{ |
|
15 |
path: 'admin', |
|
16 |
component: () => import('@/pages/system/admin'), // Parent router-view |
|
17 |
name: 'systemAdmin', |
|
18 |
meta: { title: '管理员管理' }, |
|
19 |
auth: 'sys_admin_see' |
|
20 |
}, |
|
21 |
{ |
|
22 |
path: 'role', |
|
23 |
component: () => import('@/pages/system/role'), |
|
24 |
name: 'systemRole', |
3f3c98
|
25 |
meta: { title: '角色管理', keepAlive: true }, |
2a61f6
|
26 |
auth: 'sys_admin_role_see' |
L |
27 |
}, |
|
28 |
{ |
037956
|
29 |
path: 'banner', |
L |
30 |
component: () => import('@/pages/system/banner'), |
|
31 |
name: 'systemBanner', |
3f3c98
|
32 |
meta: { title: '轮播图管理' }, |
037956
|
33 |
auth: 'banner_see' |
L |
34 |
}, |
|
35 |
{ |
2a61f6
|
36 |
path: 'basic', |
L |
37 |
component: () => import('@/pages/system/basic'), |
|
38 |
name: 'systemBasic', |
|
39 |
meta: { title: '基础设置' }, |
|
40 |
auth: 'system_set' |
|
41 |
}, |
|
42 |
{ |
|
43 |
path: 'roleAdd', |
|
44 |
component: () => import('@/pages/system/roleAdd'), |
|
45 |
name: 'systemRoleAdd', |
|
46 |
meta: { title: '新增角色', noCache: true, activeMenu: '/system/role' }, |
|
47 |
hidden: true |
|
48 |
}, |
|
49 |
{ |
|
50 |
path: 'roleEdit', |
|
51 |
component: () => import('@/pages/system/roleEdit'), |
|
52 |
name: 'systemRoleEdit', |
|
53 |
meta: { title: '编辑角色', noCache: true, activeMenu: '/system/role' }, |
|
54 |
hidden: true |
|
55 |
} |
|
56 |
] |
|
57 |
} |
|
58 |
|