huan_kong
168字小于1分钟
2023-12-07
函数名: retryGet
函数参数:
字段 | 类型 | 说明 | 默认值 |
---|---|---|---|
url | string | 请求地址 | undefined |
config | config | 请求参数 | undefined |
函数名: retryPost
函数参数:
字段 | 类型 | 说明 | 默认值 |
---|---|---|---|
url | string | 请求地址 | undefined |
config | config | 请求参数 | undefined |
函数名: retryHead
函数参数:
字段 | 类型 | 说明 | 默认值 |
---|---|---|---|
url | string | 请求地址 | undefined |
config | config | 请求参数 | undefined |
interface config extends AxiosRequestConfig {
// 失败后重试次数
times?: number
// 失败后延迟时间
ms?: number
}