fix: axios
This commit is contained in:
parent
414c191472
commit
775083e152
@ -129,7 +129,6 @@ service.interceptors.response.use(
|
|||||||
// 2.1 刷新成功,则回放队列的请求 + 当前请求
|
// 2.1 刷新成功,则回放队列的请求 + 当前请求
|
||||||
setToken((await refreshTokenRes).data.data)
|
setToken((await refreshTokenRes).data.data)
|
||||||
config.headers!.Authorization = 'Bearer ' + getAccessToken()
|
config.headers!.Authorization = 'Bearer ' + getAccessToken()
|
||||||
service.defaults.headers.Authorization = 'Bearer ' + getAccessToken()
|
|
||||||
requestList.forEach((cb: any) => {
|
requestList.forEach((cb: any) => {
|
||||||
cb()
|
cb()
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user