This repository has been archived by the owner on Aug 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 97
request 支持 GBK 编码 #718
Comments
看了下 request.tpl 的实现感觉有点问题 umi-next/packages/plugins/src/request.ts Line 160 in 8f12c19
intercepter 是在同一 axios 实例中共享的。 |
这种是否需要提示下用户,不能直接在 request 上去配置 iterceptor。只能 1. 在 app.ts 中定义全局的 iterceptor 2. 新增透出一个 axios.create 的口子,在自己新建的实例上去添加 iterceptor。 |
另外我想尝试支持下 gbk 编码转换问题 🙋🏻♂️ |
这个问题我们后面会调研讨论一下,是否有必要提供 ‘’给单独某次 request 请求添加拦截器 ‘’ 的功能。 |
欢迎!(* ̄︶ ̄) 可以直接提 pr |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
参考:https://github.com/umijs/umi-request/blob/master/src/utils.js#L83
The text was updated successfully, but these errors were encountered: