Li Kui
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
0 additions and
2 deletions
-
src/utils/http/axios/axiosRetry.ts
|
|
@ -16,8 +16,6 @@ export class AxiosRetry { |
|
|
return Promise.reject(error); |
|
|
return Promise.reject(error); |
|
|
} |
|
|
} |
|
|
config.__retryCount += 1; |
|
|
config.__retryCount += 1; |
|
|
//请求返回后config的header不正确造成重试请求失败,删除返回headers采用默认headers
|
|
|
|
|
|
delete config.headers; |
|
|
|
|
|
return this.delay(waitTime).then(() => axiosInstance(config)); |
|
|
return this.delay(waitTime).then(() => axiosInstance(config)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|