https://blog.csdn.net/weixin_38122772/article/details/106210258
https://www.jianshu.com/p/53deecb09077
antd pro 拉下来的request,用的是
https://www.jianshu.com/p/2bb4e38b57c6
https://zhuanlan.zhihu.com/p/88997003
import { extend } from 'umi-request';const request = extend({errorHandler, // 默认错误处理credentials: 'include', // 默认请求是否带上cookietimeout: 30000,headers: {'Content-Type': 'application/json',Accept: 'application/json',token:localStorage.getItem("token")},throwErrIfParseFail: true, //当JSON.parse(res) 出错时,抛出错误});
