fly icon indicating copy to clipboard operation
fly copied to clipboard

拦截器中执行异步任务token失效时请求的是上一次保存的token 导致死循环

Open chen-can opened this issue 5 years ago • 1 comments

比如我本地有token为1 token失效重新请求获取token为2 再次请求token还是1 request.params或request.body 请求拦截器中保存的全局变量无效 实测带参数会复现

chen-can avatar Feb 23 '20 01:02 chen-can

需要更新response.request的请求头

weixisheng avatar Oct 21 '20 08:10 weixisheng