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

    1. import { extend } from 'umi-request';
    2. const request = extend({
    3. errorHandler, // 默认错误处理
    4. credentials: 'include', // 默认请求是否带上cookie
    5. timeout: 30000,
    6. headers: {
    7. 'Content-Type': 'application/json',
    8. Accept: 'application/json',
    9. token:localStorage.getItem("token")
    10. },
    11. throwErrIfParseFail: true, //当JSON.parse(res) 出错时,抛出错误
    12. });