axios发送请求报错:Cannot read property 'cancelToken' of undefined - 图1

    bug原因:在使用 axios 的拦截器时,没有添加返回值 return config
    解决方法:在请求拦截器中添加 return config, (!!!注意响应拦截器中也要添加返回值)

    axios发送请求报错:Cannot read property 'cancelToken' of undefined - 图2