Skip to content

Commit 3356ef4

Browse files
docs: update links to the core Vue docs (#2055)
1 parent 8489050 commit 3356ef4

11 files changed

+13
-13
lines changed

packages/docs/guide/advanced/composition-api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
title="Learn how to use Vue Router with the composition API"
66
/>
77

8-
The introduction of `setup` and Vue's [Composition API](https://v3.vuejs.org/guide/composition-api-introduction.html), open up new possibilities but to be able to get the full potential out of Vue Router, we will need to use a few new functions to replace access to `this` and in-component navigation guards.
8+
The introduction of `setup` and Vue's [Composition API](https://vuejs.org/guide/extras/composition-api-faq.html), open up new possibilities but to be able to get the full potential out of Vue Router, we will need to use a few new functions to replace access to `this` and in-component navigation guards.
99

1010
## Accessing the Router and current Route inside `setup`
1111

packages/docs/guide/advanced/lazy-loading.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const UserDetails = () =>
3737
In general, it's a good idea **to always use dynamic imports** for all your routes.
3838

3939
::: tip Note
40-
Do **not** use [Async components](https://v3.vuejs.org/guide/component-dynamic-async.html#async-components) for routes. Async components can still be used inside route components but route component themselves are just dynamic imports.
40+
Do **not** use [Async components](https://vuejs.org/guide/components/async.html) for routes. Async components can still be used inside route components but route component themselves are just dynamic imports.
4141
:::
4242

4343
When using a bundler like webpack, this will automatically benefit from [code splitting](https://webpack.js.org/guides/code-splitting/)

packages/docs/guide/advanced/navigation-guards.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ beforeRouteLeave (to, from) {
264264

265265
### Using the composition API
266266

267-
If you are writing your component using the [composition API and a `setup` function](https://v3.vuejs.org/guide/composition-api-setup.html#setup), you can add update and leave guards through `onBeforeRouteUpdate` and `onBeforeRouteLeave` respectively. Please refer to the [Composition API section](./composition-api.md#navigation-guards) for more details.
267+
If you are writing your component using the [composition API and a `setup` function](https://vuejs.org/api/composition-api-setup.html), you can add update and leave guards through `onBeforeRouteUpdate` and `onBeforeRouteLeave` respectively. Please refer to the [Composition API section](./composition-api.md#navigation-guards) for more details.
268268

269269
## The Full Navigation Resolution Flow
270270

packages/docs/guide/advanced/transitions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ In order to use transitions on your route components and animate navigations, yo
1515
</router-view>
1616
```
1717

18-
[All transition APIs](https://v3.vuejs.org/guide/transitions-enterleave.html) work the same here.
18+
[All transition APIs](https://vuejs.org/guide/built-ins/transition.html) work the same here.
1919

2020
## Per-Route Transition
2121

@@ -70,7 +70,7 @@ router.afterEach((to, from) => {
7070

7171
## Forcing a transition between reused views
7272

73-
Vue might automatically reuse components that look alike, avoiding any transition. Fortunately, it is possible [to add a `key` attribute](https://v3.vuejs.org/api/special-attributes.html#key) to force transitions. This also allows you to trigger transitions while staying on the same route with different params:
73+
Vue might automatically reuse components that look alike, avoiding any transition. Fortunately, it is possible [to add a `key` attribute](https://vuejs.org/api/built-in-special-attributes.html#key) to force transitions. This also allows you to trigger transitions while staying on the same route with different params:
7474

7575
```vue
7676
<router-view v-slot="{ Component, route }">

packages/docs/guide/essentials/history-mode.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,4 @@ const router = createRouter({
214214
})
215215
```
216216

217-
Alternatively, if you are using a Node.js server, you can implement the fallback by using the router on the server side to match the incoming URL and respond with 404 if no route is matched. Check out the [Vue server side rendering documentation](https://v3.vuejs.org/guide/ssr/introduction.html#what-is-server-side-rendering-ssr) for more information.
217+
Alternatively, if you are using a Node.js server, you can implement the fallback by using the router on the server side to match the incoming URL and respond with 404 if no route is matched. Check out the [Vue server side rendering documentation](https://vuejs.org/guide/scaling-up/ssr.html) for more information.

packages/docs/zh/guide/advanced/composition-api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
title="Learn how to use Vue Router with the composition API"
66
/>
77

8-
引入 `setup` 和 Vue 的[组合式 API](https://v3.vuejs.org/guide/composition-api-introduction.html),开辟了新的可能性,但要想充分发挥 Vue Router 的潜力,我们需要使用一些新的函数来代替访问 `this` 和组件内导航守卫。
8+
引入 `setup` 和 Vue 的[组合式 API](https://cn.vuejs.org/guide/extras/composition-api-faq.html),开辟了新的可能性,但要想充分发挥 Vue Router 的潜力,我们需要使用一些新的函数来代替访问 `this` 和组件内导航守卫。
99

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

packages/docs/zh/guide/advanced/lazy-loading.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const UserDetails = () =>
3333
一般来说,对所有的路由**都使用动态导入**是个好主意。
3434

3535
::: tip 注意
36-
**不要**在路由中使用[异步组件](https://v3.vuejs.org/guide/component-dynamic-async.html#async-components)。异步组件仍然可以在路由组件中使用,但路由组件本身就是动态导入的。
36+
**不要**在路由中使用[异步组件](https://cn.vuejs.org/guide/components/async.html)。异步组件仍然可以在路由组件中使用,但路由组件本身就是动态导入的。
3737
:::
3838

3939
如果你使用的是 webpack 之类的打包器,它将自动从[代码分割](https://webpack.js.org/guides/code-splitting/)中受益。

packages/docs/zh/guide/advanced/navigation-guards.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ beforeRouteLeave (to, from) {
246246

247247
### 使用组合 API
248248

249-
如果你正在使用[组合 API 和 `setup` 函数](https://v3.vuejs.org/guide/composition-api-setup.html#setup)来编写组件,你可以通过 `onBeforeRouteUpdate``onBeforeRouteLeave` 分别添加 update 和 leave 守卫。 请参考[组合 API 部分](./composition-api.md#导航守卫)以获得更多细节。
249+
如果你正在使用[组合 API 和 `setup` 函数](https://cn.vuejs.org/api/composition-api-setup.html)来编写组件,你可以通过 `onBeforeRouteUpdate``onBeforeRouteLeave` 分别添加 update 和 leave 守卫。 请参考[组合 API 部分](./composition-api.md#导航守卫)以获得更多细节。
250250

251251
## 完整的导航解析流程
252252

packages/docs/zh/guide/advanced/transitions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</router-view>
1616
```
1717

18-
[Transition 的 API](https://v3.vuejs.org/guide/transitions-enterleave.html) 在这里同样适用。
18+
[Transition 的 API](https://cn.vuejs.org/guide/built-ins/transition.html) 在这里同样适用。
1919

2020
## 单个路由的过渡
2121

@@ -70,7 +70,7 @@ router.afterEach((to, from) => {
7070

7171
## 强制在复用的视图之间进行过渡
7272

73-
Vue 可能会自动复用看起来相似的组件,从而忽略了任何过渡。幸运的是,可以[添加一个 `key` 属性](https://v3.vuejs.org/api/special-attributes.html#key)来强制过渡。这也允许你在相同路由上使用不同的参数触发过渡:
73+
Vue 可能会自动复用看起来相似的组件,从而忽略了任何过渡。幸运的是,可以[添加一个 `key` 属性](https://cn.vuejs.org/api/built-in-special-attributes.html#key)来强制过渡。这也允许你在相同路由上使用不同的参数触发过渡:
7474

7575
```vue
7676
<router-view v-slot="{ Component, route }">

packages/docs/zh/guide/essentials/history-mode.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,4 @@ const router = createRouter({
197197
})
198198
```
199199

200-
另外,如果你使用的是 Node.js 服务器,你可以通过在服务器端使用路由器来匹配传入的 URL,如果没有匹配到路由,则用 404 来响应,从而实现回退。查看 [Vue 服务器端渲染文档](https://v3.cn.vuejs.org/guide/ssr/introduction.html#what-is-server-side-rendering-ssr)了解更多信息。
200+
另外,如果你使用的是 Node.js 服务器,你可以通过在服务器端使用路由器来匹配传入的 URL,如果没有匹配到路由,则用 404 来响应,从而实现回退。查看 [Vue 服务器端渲染文档](https://cn.vuejs.org/guide/scaling-up/ssr.html)了解更多信息。

packages/docs/zh/introduction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
title="Learn how to build powerful Single Page Applications with the Vue Router on Vue School"
66
/>
77

8-
Vue Router 是 [Vue.js](https://vuejs.org) 的官方路由。它与 Vue.js 核心深度集成,让用 Vue.js 构建单页应用变得轻而易举。功能包括:
8+
Vue Router 是 [Vue.js](https://cn.vuejs.org/) 的官方路由。它与 Vue.js 核心深度集成,让用 Vue.js 构建单页应用变得轻而易举。功能包括:
99

1010
- 嵌套路由映射
1111
- 动态路由选择

0 commit comments

Comments
 (0)