docs: add index.vue to page routing example (#21240)

This commit is contained in:
warflash 2023-05-29 15:56:17 +02:00 committed by GitHub
parent d85348987f
commit 181e3b9b0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"