Skip to content

Commit

Permalink
docs(zh): use full width comma (#3094)
Browse files Browse the repository at this point in the history
  • Loading branch information
kxbk100 authored May 11, 2020
1 parent 4ceec8e commit e091b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/zh/guide/advanced/navigation-guards.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const Foo = {
}
```

`beforeRouteEnter` 守卫 **不能** 访问 `this`,因为守卫在导航确认前被调用,因此即将登场的新组件还没被创建。
`beforeRouteEnter` 守卫 **不能** 访问 `this`,因为守卫在导航确认前被调用因此即将登场的新组件还没被创建。

不过,你可以通过传一个回调给 `next`来访问组件实例。在导航被确认的时候执行回调,并且把组件实例作为回调方法的参数。

Expand Down

0 comments on commit e091b04

Please sign in to comment.