AXIOS request 配置选项
其他配置:https://blog.csdn.net/moxiaoya1314/article/details/73650751
export interface Axios RequestConfig {
url?: string
method?: string
baseURL?: string
transformRequest?: Axios Transformer I Axios Transformer[
transformResponse?: AxiosTrans former Axios Trans former[]
headers?: any i
params serializer?:(params: any)=> string
data?: any;
timeout?: number;
withCredentials?: boolean;
adapter?: AxiosAdapter;
auth?: AxiosBasicCredentials:
responseType?: string
xsrfCookieName?: string
xsrfHeaderName?: string;
onUploadProgress?: (progressEvent: any )= void;
onDownloadProgress?: (progressEvent: any)=> void;
maxContentLength?: number
validateStatus?: (status: number )= boolean;
maxRedirects?: number;
httpagent?:any
httpsagent?:anyi
proxy ?: Axios Proxy Config false
cancel Token?: CancelToken
}