Skip to content

Commit

Permalink
docs: fix hash anchor link for RouteLocationRaw (#2410)
Browse files Browse the repository at this point in the history
  • Loading branch information
DDDDD12138 authored Nov 25, 2024
1 parent fe6a019 commit 2370820
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/docs/zh/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ___

松散的 [LocationQuery](index.md#locationquery) 对象,可以被传递给诸如
[Router.push](interfaces/Router.md#push)[Router.replace](interfaces/Router.md#replace) 或任何创建
[RouteLocationRaw](index.md#routelocationraw) 的函数。
[RouteLocationRaw](index.md#Type-Aliases-RouteLocationRaw) 的函数。

___

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/zh/api/interfaces/NavigationGuardNext.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ editLink: false

| 名称 | 类型 |
| :------ | :------ |
| `location` | [`RouteLocationRaw`](../index.md#routelocationraw) |
| `location` | [`RouteLocationRaw`](../index.md#Type-Aliases-RouteLocationRaw) |

#### 返回值 %{#Callable-NavigationGuardNext-Returns_2}%

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/zh/api/interfaces/RouteLocation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ editLink: false

# 接口:RouteLocation %{#interface-routelocation}%

通过匹配解析出来的 [RouteLocationRaw](../index.md#routelocationraw)
通过匹配解析出来的 [RouteLocationRaw](../index.md#Type-Aliases-RouteLocationRaw)

## 继承关系 %{#Hierarchy}%

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ editLink: false

<!-- TODO: translation -->

[RouteLocationRaw](../index.md#routelocationraw) with
[RouteLocationRaw](../index.md#Type-Aliases-RouteLocationRaw) with

## 继承关系 %{#Hierarchy}%

Expand Down
8 changes: 4 additions & 4 deletions packages/docs/zh/api/interfaces/Router.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ ___

| 名称 | 类型 | 描述 |
| :------ | :------ | :------ |
| `to` | [`RouteLocationRaw`](../index.md#routelocationraw) | 要导航到的路由 |
| `to` | [`RouteLocationRaw`](../index.md#Type-Aliases-RouteLocationRaw) | 要导航到的路由 |

#### 返回值 %{#Methods-push-Returns}%

Expand Down Expand Up @@ -341,7 +341,7 @@ ___

| 名称 | 类型 | 描述 |
| :------ | :------ | :------ |
| `to` | [`RouteLocationRaw`](../index.md#routelocationraw) | 要导航到的路由 |
| `to` | [`RouteLocationRaw`](../index.md#Type-Aliases-RouteLocationRaw) | 要导航到的路由 |

#### 返回值 %{#Methods-replace-Returns}%

Expand All @@ -353,13 +353,13 @@ ___

**resolve**(`to`, `currentLocation?`): [`RouteLocation`](RouteLocation.md) & { `href`: `string` }

返回一个[路由地址](../index.md#routelocationraw)[规范化版本](RouteLocation.md)。同时包含一个包含任何现有 `base``href` 属性。默认情况下,用于 `router.currentRoute``currentLocation` 应该在特别高阶的用例下才会被覆写。
返回一个[路由地址](../index.md#Type-Aliases-RouteLocationRaw)[规范化版本](RouteLocation.md)。同时包含一个包含任何现有 `base``href` 属性。默认情况下,用于 `router.currentRoute``currentLocation` 应该在特别高阶的用例下才会被覆写。

#### 参数 %{#Methods-resolve-Parameters}%

| 名称 | 类型 | 描述 |
| :------ | :------ | :------ |
| `to` | [`RouteLocationRaw`](../index.md#routelocationraw) | 要解析的原始路由地址 |
| `to` | [`RouteLocationRaw`](../index.md#Type-Aliases-RouteLocationRaw) | 要解析的原始路由地址 |
| `currentLocation?` | [`RouteLocationNormalizedLoaded`](RouteLocationNormalizedLoaded.md) | 可选的被解析的当前地址 |

#### 返回值 %{#Methods-resolve-Returns}%
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/zh/api/interfaces/RouterLinkProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ ___

### to %{#Properties-to}%

**to**: [`RouteLocationRaw`](../index.md#routelocationraw)
**to**: [`RouteLocationRaw`](../index.md#Type-Aliases-RouteLocationRaw)

当点击该链接时应该进入的路由地址。

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/zh/guide/advanced/navigation-guards.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ router.beforeEach((to, from) => {
可以返回的值如下:

- `false`: 取消当前的导航。如果浏览器的 URL 改变了(可能是用户手动或者浏览器后退按钮),那么 URL 地址会重置到 `from` 路由对应的地址。
- 一个[路由地址](../../api/#routelocationraw): 通过一个路由地址重定向到一个不同的地址,如同调用 `router.push()`,且可以传入诸如 `replace: true``name: 'home'` 之类的选项。它会中断当前的导航,同时用相同的 `from` 创建一个新导航。
- 一个[路由地址](../../api/#Type-Aliases-RouteLocationRaw): 通过一个路由地址重定向到一个不同的地址,如同调用 `router.push()`,且可以传入诸如 `replace: true``name: 'home'` 之类的选项。它会中断当前的导航,同时用相同的 `from` 创建一个新导航。

```js
router.beforeEach(async (to, from) => {
Expand Down

0 comments on commit 2370820

Please sign in to comment.