Skip to content

Commit fdcb73b

Browse files
ynrngyyx990803
authored andcommitted
Update hooks.md
1 parent 43dcd42 commit fdcb73b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/zh-cn/pipeline/hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ Vue.component('hook-example', {
3131

3232
每个切换钩子函数都会接受一个 `transition` 对象作为参数。这个切换对象包含以下函数和方法:
3333

34-
- **transition.from**
34+
- **transition.to**
3535

3636
一个代表将要切换到的路径的[路由对象](../route.md)
3737

38-
- **transition.to**
38+
- **transition.from**
3939

4040
一个代表当前路径的路由对象。
4141

0 commit comments

Comments
 (0)