API 参考 / @142vip/axios / AxiosFactory
类: AxiosFactory
定义于: packages/axios/src/core/axios.factory.ts:20
axios
构造函数
构造函数
new AxiosFactory(
config?
):AxiosFactory
定义于: packages/axios/src/core/axios.factory.ts:23
参数
config?
CreateAxiosDefaults
<any
>
返回
AxiosFactory
方法
clearInterceptor()
clearInterceptor(
type?
):void
定义于: packages/axios/src/core/axios.factory.ts:48
清除拦截器,支持同时清理请求拦截器和响应拦截器
参数
type?
返回
void
createAxiosInstance()
createAxiosInstance():
VipAxiosInstance
定义于: packages/axios/src/core/axios.factory.ts:31
创建vipAxios实例
返回
getConfig()
getConfig():
undefined
|CreateAxiosDefaults
<any
>
定义于: packages/axios/src/core/axios.factory.ts:41
获取用户初始化的axios实例的默认配置
返回
undefined
| CreateAxiosDefaults
<any
>