docs: use consistent page name in example (#19583)

This commit is contained in:
lei 2023-03-10 22:37:15 +09:00 committed by GitHub
parent 6bd9b9448e
commit f7a5cf07b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ When a `<NuxtLink>` enters the viewport on the client side, Nuxt will automatica
The `useRoute()` composable can be used in a `<script setup>` block or a `setup()` method of a Vue component to access the current route details.
```vue [pages/post/[id].vue]
```vue [pages/posts/[id].vue]
<script setup>
const route = useRoute()
@ -128,7 +128,7 @@ The `validate` property accepts the `route` as an argument. You can return a boo
If you have a more complex use case, then you can use anonymous route middleware instead.
```vue [pages/post/[id].vue]
```vue [pages/posts/[id].vue]
<script setup>
definePageMeta({
validate: async (route) => {