// @domain.js/axios 配置信息
axios: {loggers: ["post","get","put","patch","delete"],retry: ["post","get"],retryTimes: 3,retryIntervalMS: 10*1000,conf: {// defines the max size of the http response content in bytes allowedmaxContentLength: 100*1024*1024,// defines the max size of the http request content in bytes allowedmaxBodyLength: 100*1024*1024}}
deps
模块名
别名
用到的方法
描述
utils
U
sleep
在失败重试的时候等待
logger
logger
在处理自动记录日志方法时候用到
Usage
// Usage is same with axios
const { data} = await axios.get(url)
// without log
const axios = axios.origin;