mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
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
Block a user