docs: fix `validate` example (#8231)

This commit is contained in:
Tech Genius 2022-10-16 15:34:13 +05:30 committed by GitHub
parent 8f7a7ec06e
commit af7045df12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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>