Skip to content

Commit 9015fa7

Browse files
773500646posva
authored andcommitted
this.$router标题有误 (#2048)
* this.$router标题有误 在组件中访问当前路由使用this.$route,页面中标题写的是this.$router * Update getting-started.md
1 parent 4f97787 commit 9015fa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/zh-cn/essentials/getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const app = new Vue({
6363
// 现在,应用已经启动了!
6464
```
6565

66-
通过注入路由,我们可以用 `this.$router` 来访问它,就像在任何组件里用 `this.$router` 访问当前路由一样。
66+
通过注入路由器,我们可以在任何组件内通过 `this.$router` 访问路由器,也可以通过 `this.$route` 访问当前路由:
6767

6868
```js
6969
// Home.vue

0 commit comments

Comments
 (0)