application.js
1.45 KB
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
import Layout from '@/layout'
const applicationRouter = {
path: '/application',
component: Layout,
redirect: '/application',
alwaysShow: true, // will always show the root menu
children: [
{
path: 'appManage',
name: 'appManage',
component: () => import('@/views/application/appManage'),
meta: { title: '应用管理', icon: 'component',
roles: ['admin', 'assistant'] }
}
]
}
// const applicationRouter = {
// path: '/application',
// component: Layout,
// redirect: '/application',
// alwaysShow: true, // will always show the root menu
// name: 'Application',
// meta: {
// title: '应用',
// icon: 'component',
// roles: ['admin', 'assistant'] // you can set roles in root nav
// },
// children: [{
// path: 'appManage',
// component: () => import('@/views/application/appManage'), // 应用管理/添加
// name: 'appManage',
// meta: {
// title: '应用管理',
// icon: 'component',
// roles: ['admin', 'assistant'] // or you can only set roles in sub nav
// }
// },
// {
// path: 'appList',
// component: () => import('@/views/application/appList'), // 应用列表
// name: 'appList',
// meta: {
// title: '应用列表',
// icon: 'list',
// roles: ['admin', 'assistant'] // or you can only set roles in sub nav
// }
// }
// ]
// }
export default applicationRouter