Skip to content

Commit c26bf53

Browse files
authored
this.$router标题有误
在组件中访问当前路由使用this.$route,页面中标题写的是this.$router
1 parent c40425a commit c26bf53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/zh-cn/essentials/getting-started.md

Lines changed: 1 addition & 1 deletion
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.$route` 来访问它,就像在任何组件里用 `this.$route` 访问当前路由一样。
6767

6868
```js
6969
// Home.vue

0 commit comments

Comments
 (0)