Skip to content

Commit

Permalink
docs: use consistent page name in example (#19583)
Browse files Browse the repository at this point in the history
  • Loading branch information
oizhaolei committed Mar 10, 2023
1 parent 6bd9b94 commit f7a5cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/1.getting-started/5.routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit f7a5cf0

Please sign in to comment.