This repository was archived by the owner on Apr 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
docs/content/3.api/3.utils Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 19
19
definePageMeta (meta : PageMeta ) => void
20
20
21
21
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
26
26
layout? : false | LayoutKey | Ref <LayoutKey > | ComputedRef <LayoutKey >
27
27
middleware? : MiddlewareKey | NavigationGuard | Array <MiddlewareKey | NavigationGuard >
28
- [key : string ]: any ;
28
+ [key : string ]: any
29
29
}
30
30
```
31
31
@@ -112,7 +112,7 @@ The example below shows how the middleware can be defined using a `function` dir
112
112
definePageMeta({
113
113
// define middleware as a function
114
114
middleware: [
115
- async function (to, from) {
115
+ function (to, from) {
116
116
const auth = useState('auth')
117
117
118
118
if (!auth.value.authenticated) {
You can’t perform that action at this time.
0 commit comments