-
Notifications
You must be signed in to change notification settings - Fork 336
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
配置request.interceptors.response.use后,errorHandler失效 #53
base: use/umi-lint
Are you sure you want to change the base?
Conversation
refactor: use umi-plugin-library to bundle
close #25
fix error type
doc: add doc vs axios and english readme.
send data for patch method
Send data for PATCH
Update index.d.ts
Add a parameter description for credentials in README.md file.
fix: index.d.ts 缺少 patch 方法定义
feat: Send data using delete
feat: use umi-lint
type support async
Co-authored-by: 温鑫 <[email protected]>
* feat: add AbortController polyfill * doc: update cases; update types
包一层 函数 同意处理 Response,绕过报错: //包一层 处理返回 // 检测返回结果是否有错误 export default requestUmi; 使用: |
Co-authored-by: 夏柏阳 <[email protected]>
因为 prefix 配置和 interceptor 内部都可以修改 url,而在后续的 interceptor 中难以将其还原。 在 options 中储存一下原始入参的 url 值,以便后续的 interceptor 读取。
* chore: switch build tool to father * chore: use father-build instead of father Co-authored-by: troy.lty <[email protected]>
* chore: remove abort controller polyfill * test: update test case and remove AbortController export * docs: update doc for abort controller
Co-authored-by: shiluo.dwt <[email protected]>
上传文件应当指定指定 requestType: 'form',文档示例缺少改部分代码
文件上传补充说明
测试发现未配置"5. For the status code is actually 200 errors," errorHandler能正常接收到404 500错误.
配置了request.interceptors.response.use后,errorHandler中error返回为underfind