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
import Layout from '@/views/layout/Layout'
const PickRouter = {
path: '/pick',
component: Layout,
redirect: '/pick/list',
name: 'Pick',
meta: {
title: 'Pick管理',
icon: 'component',
roles: ['staff']
},
children: [
{
path: 'list',
component: () => import('@/views/pick/list'),
name: 'PickList',
meta: {title: 'Pick列表', icon: 'list'}
},
{
path: 'create',
component: () => import('@/views/pick/create'),
name: 'CreatePick',
meta: {title: '创建Pick', icon: 'edit'}
},
{
path: 'edit/:id(\\d+)',
component: () => import('@/views/pick/edit'),
name: 'EditPick',
meta: {title: '编辑Pick', noCache: true},
hidden: true
}
]
}
export default PickRouter