docs: fix dynamic routes template (#524)

This commit is contained in:
kazuya kawaguchi 2021-09-11 00:52:12 +09:00 committed by GitHub
parent 4cd6d80448
commit 93e1f7be2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ If you place anything within square brackets, it will be turned into a [dynamic
-| pages/ -| pages/
---| index.vue ---| index.vue
---| users-[group]/ ---| users-[group]/
-----| [userid].vue -----| [id].vue
``` ```
Given the example above, you can access group/userid within your component via the `$route` object: Given the example above, you can access group/userid within your component via the `$route` object: