mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
docs: docs/3.api/3.utils/define-page-meta.md (#23006)
This commit is contained in:
parent
89c4436ae1
commit
b27740cf50
@ -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[]`
|
||||
|
Loading…
Reference in New Issue
Block a user