Skip to content

Commit aa939ec

Browse files
posvayyx990803
authored andcommitted
Fix beforeEnter signature in docs (#782)
1 parent 63d903d commit aa939ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/ja/api/options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
redirect?: string | Location | Function;
1616
alias?: string | Array<string>;
1717
children?: Array<RouteConfig>; // ネストされたルート用
18-
beforeEnter?: (route: Route, redirect: Function, next: Function) => void;
18+
beforeEnter?: (to: Route, from: Route, next: Function) => void;
1919
meta?: any;
2020
}
2121
```

docs/zh-cn/api/options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
redirect?: string | Location | Function;
1616
alias?: string | Array<string>;
1717
children?: Array<RouteConfig>; // for nested routes
18-
beforeEnter?: (route: Route, redirect: Function, next: Function) => void;
18+
beforeEnter?: (to: Route, from: Route, next: Function) => void;
1919
meta?: any;
2020
}
2121
```

0 commit comments

Comments
 (0)