Fork me on GitHub

vue的路由(route)

vue的路由

注意: component后面的值不要有引号,父级不要有名字name属性

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[
{
path: '/',
component: Bigdata,
children: [
{
path: '',
redirect: { name: 'Table' }
},{
path: 'table',
name: 'Table' ,
component: Table
}
]
}
]
显示 Gitment 评论