【仅供内部供应商使用,不提供对外解答和培训】
| provider | 可供调用的方法 | 作用 | 说明 & 示例 | |||||
|---|---|---|---|---|---|---|---|---|
bi.provider.cipher | encrypt( fn: (pwd: string) => string ) | 自定义加密方法 | 此接口用来自定义修改BI在需要使用加解密的功能场景下的加解密方法
| |||||
decrypt( fn: (pwd: string) => string ) | 自定义解密方法 | |||||||
bi.provider.base.req | reqBefore(fn: (config: any)=> newConfig) | 请求前钩子 | 此接口用来对外提供在请求前、请求成功、请求完成、请求失败的钩子
| |||||
reqAfterSuccess(fn: (res: any) => void) | 请求成功钩子 | |||||||
reqAfterComplete(fn: (res: any) => void) | 请求完成钩子 | |||||||
reqAfterFail(fn: (res: any) => void) | 请求失败钩子 |