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 all 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 @@ -134,7 +134,7 @@ definePageMeta({
validate: async (route) => {
const nuxtApp = useNuxtApp()
// Check if the id is made up of digits
return /^\d+$/.test(params.id)
return /^\d+$/.test(route.params.id)
}
})
</script>
Expand Down