当前位置:   article > 正文

Type ‘AxiosRequestConfig<any>‘ is not assignable to type ‘InternalAxiosRequestConfig<any> | Promise<_promise is not assignable to type axiosinterceptor

promise is not assignable to type axiosinterceptoroptions

参考文章:
axios的最新封装,解决类型AxiosRequestConfig不能赋值给InternalAxiosReqe;CreateAxiosDefaults不能赋值给AxiosRequestConfig
改变的地方:在使用拦截器时,使用InternalAxiosRequestConfig而不使用AxiosRequestConfig

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/299756
推荐阅读
相关标签
  

闽ICP备14008679号