Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
Update define-page-meta.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianGlowala authored Aug 26, 2022
1 parent f1fced9 commit 4903099
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/content/3.api/3.utils/define-page-meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
definePageMeta(meta: PageMeta) => void

interface PageMeta {
pageTransition?: boolean | TransitionProps;
layoutTransition?: boolean | TransitionProps;
key?: false | string | ((route: RouteLocationNormalizedLoaded) => string);
keepalive?: boolean | KeepAliveProps;
pageTransition?: boolean | TransitionProps
layoutTransition?: boolean | TransitionProps
key?: false | string | ((route: RouteLocationNormalizedLoaded) => string)
keepalive?: boolean | KeepAliveProps
layout?: false | LayoutKey | Ref<LayoutKey> | ComputedRef<LayoutKey>
middleware?: MiddlewareKey | NavigationGuard | Array<MiddlewareKey | NavigationGuard>
[key: string]: any;
[key: string]: any
}
```

Expand Down Expand Up @@ -112,7 +112,7 @@ The example below shows how the middleware can be defined using a `function` dir
definePageMeta({
// define middleware as a function
middleware: [
async function (to, from) {
function (to, from) {
const auth = useState('auth')
if (!auth.value.authenticated) {
Expand Down

0 comments on commit 4903099

Please sign in to comment.