feat(init): 支持beforeSend,开发者可在请求发送前通过hook处理数据

This commit is contained in:
ivinwu
2021-06-15 15:40:24 +08:00
parent 782b9d7900
commit b0e48a8fe4
8 changed files with 56 additions and 16 deletions

View File

@@ -52,6 +52,8 @@ export interface IInitOption {
doNotUseQueryString?: boolean;
/* 自定义错误处理函数 */
errorHandler?: Function | null;
/* 请求发送前提供hook给开发者自定义修改发送内容 */
beforeSend?: Function | null;
}
export interface ICodeToSessionOptions{