Skip to content

Commit a2c2817

Browse files
LiuwqGitfnlctrl
authored andcommitted
Update navigation-guards.md (#1238)
1 parent 08d3666 commit a2c2817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/zh-cn/advanced/navigation-guards.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const Foo = {
8080
// 因为当钩子执行前,组件实例还没被创建
8181
},
8282
beforeRouteUpdate (to, from, next) {
83-
// 在当前路由改变,但是改组件被复用时调用
83+
   // 在当前路由改变,但是该组件被复用时调用
8484
// 举例来说,对于一个带有动态参数的路径 /foo/:id,在 /foo/1 和 /foo/2 之间跳转的时候,
8585
// 由于会渲染同样的 Foo 组件,因此组件实例会被复用。而这个钩子就会在这个情况下被调用。
8686
// 可以访问组件实例 `this`

0 commit comments

Comments
 (0)