]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: Update index.md (fix #1236) (#1656)
authorJay <47918755+jayredk@users.noreply.github.com>
Mon, 20 Feb 2023 17:18:06 +0000 (01:18 +0800)
committerGitHub <noreply@github.com>
Mon, 20 Feb 2023 17:18:06 +0000 (18:18 +0100)
packages/docs/guide/index.md
packages/docs/zh/guide/index.md

index 6d54507e61e56f63bee13299fc43c02938d15ca3..28c01f59ff69eb5ed15e5e583eb727c5d3deddd9 100644 (file)
@@ -74,7 +74,7 @@ app.mount('#app')
 // Now the app has started!
 ```
 
-By calling `app.use(router)`, we get access to it as `this.$router` as well as the current route as `this.$route` inside of any component:
+By calling `app.use(router)`, we are triggering the initial navigation and giving access to `this.$router` as well as the current route as `this.$route` inside of any component:
 
 ```js
 // Home.vue
index 5c4232a530d532735dac7293e32719ad323f5a87..ee2a039663502cd16bc4fa51e3f90483bfffc57a 100644 (file)
@@ -72,7 +72,7 @@ app.mount('#app')
 // 现在,应用已经启动了!
 ```
 
-通过调用 `app.use(router)`,我们可以在任意组件中以 `this.$router` 的形式访问它,并且以 `this.$route` 的形式访问当前路由:
+通过调用 `app.use(router)`,我们会触发第一次导航且可以在任意组件中以 `this.$router` 的形式访问它,并且以 `this.$route` 的形式访问当前路由:
 
 ```js
 // Home.vue