mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-01 18:17:46 +00:00
feat: add request retry (#1553)
This commit is contained in:
7
types/axios.d.ts
vendored
7
types/axios.d.ts
vendored
@@ -23,8 +23,15 @@ export interface RequestOptions {
|
||||
ignoreCancelToken?: boolean;
|
||||
// Whether to send token in header
|
||||
withToken?: boolean;
|
||||
// 请求重试机制
|
||||
retryRequest?: RetryRequest;
|
||||
}
|
||||
|
||||
export interface RetryRequest {
|
||||
isOpenRetry: boolean;
|
||||
count: number;
|
||||
waitTime: number;
|
||||
}
|
||||
export interface Result<T = any> {
|
||||
code: number;
|
||||
type: 'success' | 'error' | 'warning';
|
||||
|
Reference in New Issue
Block a user