Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

docs: fixed cannot find name 'params' #8231

Merged
merged 3 commits into from Oct 16, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/content/1.getting-started/5.routing.md
Expand Up @@ -131,7 +131,7 @@ If you have a more complex use case, then you can use anonymous route middleware
```vue [pages/post/[id].vue]
<script setup>
definePageMeta({
validate: async (route) => {
validate: async ({ params }) => {
const nuxtApp = useNuxtApp()
// Check if the id is made up of digits
return /^\d+$/.test(params.id)
TechGenius7777 marked this conversation as resolved.
Show resolved Hide resolved
Expand Down