docs: update pages to explain catchall pattern (#789)

This commit is contained in:
Daniel Roe 2021-10-12 16:40:52 +01:00 committed by GitHub
parent f69289c5cd
commit 926062db3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,8 @@ Nuxt will automatically integrate [Vue Router](https://next.router.vuejs.org/) a
If you place anything within square brackets, it will be turned into a [dynamic route](https://next.router.vuejs.org/guide/essentials/dynamic-matching.html) parameter. You can mix and match multiple parameters and even non-dynamic text within a file name or directory.
If you need a catch-all route, you create it by using a file named like `[...slug].vue`. This will match _all_ routes under that path, and thus it doesn't support any non-dynamic text.
### Example
```bash