docs: docs/3.api/3.utils/define-page-meta.md (#23006)

This commit is contained in:
xjccc 2023-09-05 16:04:48 +08:00 committed by GitHub
parent 89c4436ae1
commit b27740cf50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,7 @@ definePageMeta(meta: PageMeta) => void
interface PageMeta {
validate?: (route: RouteLocationNormalized) => boolean | Promise<boolean> | Partial<NuxtError> | Promise<Partial<NuxtError>>
redirect?: RouteRecordRedirectOption
path?: string
alias?: string | string[]
pageTransition?: boolean | TransitionProps
layoutTransition?: boolean | TransitionProps
@ -45,6 +46,12 @@ interface PageMeta {
An object accepting the following page metadata:
**`path`**
- **Type**: `string`
You may define a path matcher, if you have a more complex pattern than can be expressed with the file name.
**`alias`**
- **Type**: `string | string[]`