mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 13:48:13 +00:00
docs: fix typo (#18975)
This commit is contained in:
parent
b25b6c82c7
commit
6d7be476a2
@ -125,7 +125,7 @@ The validate hook in Nuxt 3 only accepts a single argument, the `route`. Just as
|
||||
+ definePageMeta({
|
||||
+ validate: async (route) => {
|
||||
+ const nuxtApp = useNuxtApp()
|
||||
+ return /^\d+$/.test(params.id)
|
||||
+ return /^\d+$/.test(route.params.id)
|
||||
+ }
|
||||
+ })
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user