mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
fix tabs readme
This commit is contained in:
parent
044a4bfb55
commit
14543bc327
@ -110,16 +110,16 @@ will automatically generate:
|
|||||||
router: {
|
router: {
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: '/users',
|
path: '/users',
|
||||||
component: 'pages/users',
|
component: 'pages/users',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: ':id',
|
path: ':id',
|
||||||
component: 'pages/users/_id',
|
component: 'pages/users/_id',
|
||||||
name: 'users-id'
|
name: 'users-id'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -145,32 +145,32 @@ will automatically generate:
|
|||||||
router: {
|
router: {
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: '/posts',
|
path: '/posts',
|
||||||
component: 'pages/posts',
|
component: 'pages/posts',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "",
|
path: "",
|
||||||
component: 'pages/posts/index',
|
component: 'pages/posts/index',
|
||||||
name: 'posts'
|
name: 'posts'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: ':slug',
|
path: ':slug',
|
||||||
component: 'pages/posts/_slug',
|
component: 'pages/posts/_slug',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'comments',
|
path: 'comments',
|
||||||
component: 'pages/posts/_slug/comments',
|
component: 'pages/posts/_slug/comments',
|
||||||
name: 'posts-slug-comments'
|
name: 'posts-slug-comments'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: ':name',
|
path: ':name',
|
||||||
component: 'pages/posts/_slug/_name',
|
component: 'pages/posts/_slug/_name',
|
||||||
name: 'posts-slug-name'
|
name: 'posts-slug-name'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user