diff --git a/src/utils/http/axios/index.ts b/src/utils/http/axios/index.ts index 7b7b8f28..9c3a86b2 100644 --- a/src/utils/http/axios/index.ts +++ b/src/utils/http/axios/index.ts @@ -216,6 +216,7 @@ const transform: AxiosTransform = { const { isOpenRetry } = config.requestOptions.retryRequest; config.method?.toUpperCase() === RequestEnum.GET && isOpenRetry && + error?.response?.status !== 401 && // @ts-ignore retryRequest.retry(axiosInstance, error); return Promise.reject(error);