Skip to content

Commit

Permalink
Merge pull request #1726 from Jinjiang/jinjiang/translate/zh-2023-02-16
Browse files Browse the repository at this point in the history
docs(zh): sync update to e008551
  • Loading branch information
Jinjiang authored Mar 8, 2023
2 parents 0daf993 + c2f6296 commit 61753b3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/docs/zh/guide/advanced/composition-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

## `setup` 中访问路由和当前路由

因为我们在 `setup` 里面没有访问 `this`,所以我们不能再直接访问 `this.$router``this.$route`。作为替代,我们使用 `useRouter` 函数:
因为我们在 `setup` 里面没有访问 `this`,所以我们不能再直接访问 `this.$router``this.$route`。作为替代,我们使用 `useRouter` `useRoute` 函数:

```js
import { useRouter, useRoute } from 'vue-router'
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/zh/guide/advanced/extending-router-link.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default {
<template>
<AppLink
v-bind="$attrs"
class="inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-500 focus:outline-none transition duration-150 ease-in-out hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out"
class="inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out"
active-class="border-indigo-500 text-gray-900 focus:border-indigo-700"
inactive-class="text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:text-gray-700 focus:border-gray-300"
>
Expand Down
1 change: 1 addition & 0 deletions packages/docs/zh/guide/advanced/lazy-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default defineConfig({
'./src/UserProfileEdit',
],
},
},
},
},
})
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/zh/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ hero:
text: Vue.js 的官方路由
tagline: 为 Vue.js 提供富有表现力、可配置的、方便的路由
image:
src: /logo.png
src: /logo.svg
alt: Vue Router
actions:
- theme: brand
Expand Down

0 comments on commit 61753b3

Please sign in to comment.