微信小程序请求自定义配置,继承自CustomConfig

Hierarchy

Properties

loading?: boolean

是否显示loading

showSuccessMsg?: boolean

是否显示成功提示

successMsg?: string

成功提示信息

returnRes?: boolean

是否返回axios的response

silent?: boolean

报错不弹窗,需要自己实现

statusHandlers?: StatusHandlers<CustomConfig>

状态处理

cache?: boolean | CustomCacheConfig

缓存配置

tag?: Tag

标签,用于取消请求

retry?: number | RetryConfig

失败重试次数

Generated using TypeDoc