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

Commit

Permalink
docs: fix validate example (#8231)
Browse files Browse the repository at this point in the history
  • Loading branch information
TechGenius7777 committed Oct 16, 2022
1 parent 8f7a7ec commit af7045d
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit af7045d

Please sign in to comment.