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
import Layout from '@/views/layout/Layout'
const TopicRouter = {
path: '/topic',
component: Layout,
redirect: '/topic/list',
name: 'Topic',
meta: {
title: '帖子管理',
icon: 'example'
},
children: [
{
path: 'list',
component: () => import('@/views/topic/list'),
name: 'TopicList',
meta: {title: '帖子列表', icon: 'list'}
},
{
path: 'create',
component: () => import('@/views/topic/create'),
name: 'CreateTopic',
meta: {title: '创建帖子', icon: 'edit'}
},
{
path: 'edit/:id(\\d+)',
component: () => import('@/views/topic/edit'),
name: 'EditTopic',
meta: {title: '编辑帖子', noCache: true},
hidden: true
}
]
}
export default TopicRouter