Skip to content

Commit c3e5872

Browse files
bbbbxposva
authored andcommitted
docs: make title more understandable (#2587)
add before to global guards title
1 parent c5af78b commit c3e5872

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/guide/advanced/navigation-guards.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ As the name suggests, the navigation guards provided by `vue-router` are primari
44

55
Remember that **params or query changes won't trigger enter/leave navigation guards**. You can either [watch the `$route` object](../essentials/dynamic-matching.md#reacting-to-params-changes) to react to those changes, or use the `beforeRouteUpdate` in-component guard.
66

7-
## Global Guards
7+
## Global Before Guards
88

99
You can register global before guards using `router.beforeEach`:
1010

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
记住**参数或查询的改变并不会触发进入/离开的导航守卫**。你可以通过[观察 `$route` 对象](../essentials/dynamic-matching.md#响应路由参数的变化)来应对这些变化,或使用 `beforeRouteUpdate` 的组件内守卫。
1010

11-
## 全局守卫
11+
## 全局前置守卫
1212

1313
你可以使用 `router.beforeEach` 注册一个全局前置守卫:
1414

0 commit comments

Comments
 (0)