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
58
59
60
61
62
63
64
65
| /*
| * @Author: your name
| * @Date: 2022-03-03 17:45:27
| * @LastEditTime: 2022-03-03 18:03:24
| * @LastEditors: your name
| * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
| * @FilePath: \sms_center_backstage\src\router\system_router.js
| */
| // 路由配置文件
| 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: '角色管理', keepAlive: true },
| auth: 'sys_admin_role_see'
| },
| // {
| // path: 'banner',
| // component: () => import('@/pages/system/banner'),
| // name: 'systemBanner',
| // meta: { title: '轮播图管理' },
| // 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
| }
| ]
| }
|
|