Skip to content

Commit f617939

Browse files
wangyi7099posva
authored andcommitted
Update meta.md (#1897)
还有在导航守卫中的路(有)对象 => 还有在导航守卫中的路(由)对象
1 parent 11c6614 commit f617939

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/zh-cn/advanced/meta.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const router = new VueRouter({
2727

2828
例如,根据上面的路由配置,`/foo/bar` 这个 URL 将会匹配父路由记录以及子路由记录。
2929

30-
一个路由匹配到的所有路由记录会暴露为 `$route` 对象(还有在导航守卫中的路有对象)的 `$route.matched` 数组。因此,我们需要遍历 `$route.matched` 来检查路由记录中的 `meta` 字段。
30+
一个路由匹配到的所有路由记录会暴露为 `$route` 对象(还有在导航守卫中的路由对象)的 `$route.matched` 数组。因此,我们需要遍历 `$route.matched` 来检查路由记录中的 `meta` 字段。
3131

3232
下面例子展示在全局导航守卫中检查元字段:
3333

0 commit comments

Comments
 (0)