import { AxiosError } from 'axios' export interface CustomConfigType { // 是否需要 loading 默认值 false isNeedLoading?: boolean // loading 出现的延迟时间 默认值 300ms delayLoading?: number // 自定义 loading showLoadingFn?: (isShow: boolean) => void // 是否需要统一处理 error 默认值 true isNeedError?: boolean // error 的显示方式 默认值 undefined showErrorFn?: (error: AxiosError) => void // 是否需要缓存 默认值 false isNeedCache?: boolean // 是否需要缓存 默认值 false cacheTime?: number // 缓存Url cacheUrl?: string }