feat(init): 支持beforeSend,开发者可在请求发送前通过hook处理数据
This commit is contained in:
@@ -52,6 +52,8 @@ export interface IInitOption {
|
||||
doNotUseQueryString?: boolean;
|
||||
/* 自定义错误处理函数 */
|
||||
errorHandler?: Function | null;
|
||||
/* 请求发送前,提供hook给开发者自定义修改发送内容 */
|
||||
beforeSend?: Function | null;
|
||||
}
|
||||
|
||||
export interface ICodeToSessionOptions{
|
||||
|
||||
Reference in New Issue
Block a user