mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-19 15:10:58 +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({
|
+ definePageMeta({
|
||||||
+ validate: async (route) => {
|
+ validate: async (route) => {
|
||||||
+ const nuxtApp = useNuxtApp()
|
+ const nuxtApp = useNuxtApp()
|
||||||
+ return /^\d+$/.test(params.id)
|
+ return /^\d+$/.test(route.params.id)
|
||||||
+ }
|
+ }
|
||||||
+ })
|
+ })
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user