types/axios.d.ts
@@ -23,8 +23,15 @@ 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';