From 911335edfc687b114117fc204f5c87eb9127fa93 Mon Sep 17 00:00:00 2001 From: Ryan Su Date: Fri, 14 Jun 2024 15:30:43 +0800 Subject: [PATCH] fix: axios retry lose headers --- src/utils/http/axios/axiosRetry.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/utils/http/axios/axiosRetry.ts b/src/utils/http/axios/axiosRetry.ts index bf44cf742..f508c8003 100644 --- a/src/utils/http/axios/axiosRetry.ts +++ b/src/utils/http/axios/axiosRetry.ts @@ -16,8 +16,6 @@ export class AxiosRetry { return Promise.reject(error); } config.__retryCount += 1; - //请求返回后config的header不正确造成重试请求失败,删除返回headers采用默认headers - delete config.headers; return this.delay(waitTime).then(() => axiosInstance(config)); }