docs: fix typo (#18975)

This commit is contained in:
Benjamin Flesch 2023-02-12 20:18:39 +01:00 committed by GitHub
parent b25b6c82c7
commit 6d7be476a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>