mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
docs: fix validate
example (#8231)
This commit is contained in:
parent
8f7a7ec06e
commit
af7045df12
@ -134,7 +134,7 @@ definePageMeta({
|
|||||||
validate: async (route) => {
|
validate: async (route) => {
|
||||||
const nuxtApp = useNuxtApp()
|
const nuxtApp = useNuxtApp()
|
||||||
// Check if the id is made up of digits
|
// Check if the id is made up of digits
|
||||||
return /^\d+$/.test(params.id)
|
return /^\d+$/.test(route.params.id)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user