mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-11 02:13:28 +08:00
fix: config 子应用 axios 配置错误兼容
This commit is contained in:
@@ -47,8 +47,8 @@ serviceInstance.interceptors.response.use(
|
|||||||
return res;
|
return res;
|
||||||
},
|
},
|
||||||
(err: any) => {
|
(err: any) => {
|
||||||
const config = err.config;
|
const config = err?.config;
|
||||||
if (!config || !config.retryTimes) return dealResponse(err, config.customNotification);
|
if (!config || !config.retryTimes) return dealResponse(err);
|
||||||
const { __retryCount = 0, retryDelay = 300, retryTimes } = config;
|
const { __retryCount = 0, retryDelay = 300, retryTimes } = config;
|
||||||
config.__retryCount = __retryCount;
|
config.__retryCount = __retryCount;
|
||||||
if (__retryCount >= retryTimes) {
|
if (__retryCount >= retryTimes) {
|
||||||
|
|||||||
Reference in New Issue
Block a user