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

Commit 4903099

Browse files
Update define-page-meta.md
1 parent f1fced9 commit 4903099

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/content/3.api/3.utils/define-page-meta.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
definePageMeta(meta: PageMeta) => void
2020

2121
interface PageMeta {
22-
pageTransition?: boolean | TransitionProps;
23-
layoutTransition?: boolean | TransitionProps;
24-
key?: false | string | ((route: RouteLocationNormalizedLoaded) => string);
25-
keepalive?: boolean | KeepAliveProps;
22+
pageTransition?: boolean | TransitionProps
23+
layoutTransition?: boolean | TransitionProps
24+
key?: false | string | ((route: RouteLocationNormalizedLoaded) => string)
25+
keepalive?: boolean | KeepAliveProps
2626
layout?: false | LayoutKey | Ref<LayoutKey> | ComputedRef<LayoutKey>
2727
middleware?: MiddlewareKey | NavigationGuard | Array<MiddlewareKey | NavigationGuard>
28-
[key: string]: any;
28+
[key: string]: any
2929
}
3030
```
3131

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

0 commit comments

Comments
 (0)