mirror of https://github.com/nuxt/nuxt.git
docs: fix `validate` example (#8231)
This commit is contained in:
parent
8f7a7ec06e
commit
af7045df12
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue