Skip to content

Commit 846e05f

Browse files
authored
docs(zh): remove excess word (#2081)
1 parent 4d93e4e commit 846e05f

File tree

1 file changed

+1
-1
lines changed
  • packages/docs/zh/guide/advanced

1 file changed

+1
-1
lines changed

packages/docs/zh/guide/advanced/meta.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const routes = [
3838

3939
例如,根据上面的路由配置,`/posts/new` 这个 URL 将会匹配父路由记录 (`path: '/posts'`) 以及子路由记录 (`path: 'new'`)。
4040

41-
一个路由匹配到的所有路由记录会暴露为 `$route` 对象(还有在导航守卫中的路由对象)的`$route.matched` 数组。我们需要遍历这个数组来检查路由记录中的 `meta` 字段,但是 Vue Router 还为你提供了一个 `$route.meta` 方法,它是一个非递归合并**所有 `meta`** 字段的(从父字段到子字段)的方法。这意味着你可以简单地写
41+
一个路由匹配到的所有路由记录会暴露为 `$route` 对象(还有在导航守卫中的路由对象)的`$route.matched` 数组。我们需要遍历这个数组来检查路由记录中的 `meta` 字段,但是 Vue Router 还为你提供了一个 `$route.meta` 方法,它是一个非递归合并**所有 `meta`** 字段(从父字段到子字段)的方法。这意味着你可以简单地写
4242

4343
```js
4444
router.beforeEach((to, from) => {

0 commit comments

Comments
 (0)