mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
docs: use consistent page name in example (#19583)
This commit is contained in:
parent
6bd9b9448e
commit
f7a5cf07b5
@ -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.
|
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>
|
<script setup>
|
||||||
const route = useRoute()
|
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.
|
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>
|
<script setup>
|
||||||
definePageMeta({
|
definePageMeta({
|
||||||
validate: async (route) => {
|
validate: async (route) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user