07-(vue-err):Uncaught (in promise) TypeError: Cannot read property 'cancelToken' of undefined at ...

Uncaught (in promise) TypeError: Cannot read property 'cancelToken' of undefined at throwIfCancellationRequested

出现此问题,先看看是不是自己在使用axios的响应拦截方法的时候与请求拦截方法写错了。

请求拦截:instance1.interceptors.request.use()

响应拦截:instance1.interceptors.response.use()

如果没有写错,那么你就需要看看是不是两个写反了,或者写了两个一样的了

你可能感兴趣的:(07-(vue-err):Uncaught (in promise) TypeError: Cannot read property 'cancelToken' of undefined at ...)