Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc(request): fix typo #653

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/request.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ nav:

通过 `import { request } from 'umi';` 你可以使用内置的请求方法。 [request](https://umijs.org/zh-CN/plugins/plugin-request#request) 接收两个参数,第一个参数是 url,第二个参数是请求的 options。options 具体格式参考 umi-request。

[request](https://umijs.org/zh-CN/plugins/plugin-request#request) 的大部分用法等同于 umi-request,一个不同的是 options 扩展了一个配置 skipErrorHandler,该配置为 true 是会跳过默认的错误处理,用于项目中部分特殊的接口。
[request](https://umijs.org/zh-CN/plugins/plugin-request#request) 的大部分用法等同于 umi-request,一个不同的是 options 扩展了一个配置 skipErrorHandler,该配置为 true 时会跳过默认的错误处理,用于项目中部分特殊的接口。

示例代码如下:

Expand Down