Skip to content

Commit d543ca9

Browse files
lonreposva
authored andcommitted
Fix typo (#1891)
1 parent 3cdb3d5 commit d543ca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/zh-cn/essentials/dynamic-matching.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const User = {
3939

4040
### 响应路由参数的变化
4141

42-
提醒一下,当使用路由参数时,例如从 `/user/foo` 导航到 `user/bar`**原来的组件实例会被复用**。因为两个路由都渲染同个组件,比起销毁再创建,复用则显得更加高效。**不过,这也意味着组件的生命周期钩子不会再被调用**
42+
提醒一下,当使用路由参数时,例如从 `/user/foo` 导航到 `/user/bar`**原来的组件实例会被复用**。因为两个路由都渲染同个组件,比起销毁再创建,复用则显得更加高效。**不过,这也意味着组件的生命周期钩子不会再被调用**
4343

4444
复用组件时,想对路由参数的变化作出响应的话,你可以简单地 watch(监测变化) `$route` 对象:
4545

0 commit comments

Comments
 (0)