mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
docs: add index.vue
to page routing example (#21240)
This commit is contained in:
parent
d85348987f
commit
181e3b9b0a
@ -17,6 +17,7 @@ This file system routing uses naming conventions to create dynamic and nested ro
|
||||
```text [pages/ directory]
|
||||
pages/
|
||||
--| about.vue
|
||||
--| index.vue
|
||||
--| posts/
|
||||
----| [id].vue
|
||||
```
|
||||
@ -28,6 +29,10 @@ pages/
|
||||
"path": "/about",
|
||||
"component": "pages/about.vue"
|
||||
},
|
||||
{
|
||||
"path": "/",
|
||||
"component": "pages/index.vue"
|
||||
},
|
||||
{
|
||||
"path": "/posts/:id",
|
||||
"component": "pages/posts/[id].vue"
|
||||
|
Loading…
Reference in New Issue
Block a user