perf:新增onHttpError,发布版本1.0.6
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
/**
|
||||
* 默认配置
|
||||
* @type {{prefix: string, encryptBody: boolean}}
|
||||
* @type {{onHttpError: defaultConfig.onHttpError, prefix: string, base64Key: string, encryptBody: boolean}}
|
||||
*/
|
||||
const defaultConfig = {
|
||||
encryptBody: true,
|
||||
base64Key: "WmdUzPJXbngVNiaSsQrihg==",
|
||||
prefix: "",
|
||||
onHttpError: (res) => {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user