From: John Mao Date: Tue, 5 Mar 2024 01:54:06 +0000 (+0800) Subject: docs(zh): translate the note part of programmatic_navigation to Chinese (#2159) X-Git-Tag: v4.3.1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0435b748140a667b3468bd21af24c9efde419545;p=thirdparty%2Fvuejs%2Frouter.git docs(zh): translate the note part of programmatic_navigation to Chinese (#2159) * docs(zh): translate the note part of programmatic_navigation to Chinese * Update packages/docs/zh/guide/essentials/navigation.md --------- Co-authored-by: Jinjiang --- diff --git a/packages/docs/zh/guide/essentials/navigation.md b/packages/docs/zh/guide/essentials/navigation.md index 923519e3..2ddba787 100644 --- a/packages/docs/zh/guide/essentials/navigation.md +++ b/packages/docs/zh/guide/essentials/navigation.md @@ -13,9 +13,7 @@ sidebarDepth: 0 ## 导航到不同的位置 - - -**Note: The examples below refer to the router instance as `router`. Inside a component, you can access the router using the `$router` property, e.g. `this.$router.push(...)`. If you're using the Composition API, the router is accessible by calling [`useRouter()`](../advanced/composition-api).** +**注意: 下面的示例中的 `router` 指代路由器实例。在组件内部,你可以使用 `$router` 属性访问路由,例如 `this.$router.push(...)`。如果使用组合式 API,你可以通过调用 [`useRouter()`](../advanced/composition-api) 来访问路由器。** 想要导航到不同的 URL,可以使用 `router.push` 方法。这个方法会向 history 栈添加一个新的记录,所以,当用户点击浏览器后退按钮时,会回到之前的 URL。