release: update 4.3.0

This commit is contained in:
xiaoxian521
2023-06-05 15:44:49 +08:00
parent 4e95672cb4
commit d9ab1b1198
38 changed files with 2065 additions and 1236 deletions

View File

@@ -63,7 +63,7 @@ class PureHttp {
async (config: PureHttpRequestConfig): Promise<any> => {
// 开启进度条动画
NProgress.start();
// 优先判断post/get等方法是否传入回,否则执行初始化设置等回
// 优先判断post/get等方法是否传入回,否则执行初始化设置等回
if (typeof config.beforeRequestCallback === "function") {
config.beforeRequestCallback(config);
return config;
@@ -123,7 +123,7 @@ class PureHttp {
const $config = response.config;
// 关闭进度条动画
NProgress.done();
// 优先判断post/get等方法是否传入回,否则执行初始化设置等回
// 优先判断post/get等方法是否传入回,否则执行初始化设置等回
if (typeof $config.beforeResponseCallback === "function") {
$config.beforeResponseCallback(response);
return response.data;
@@ -159,7 +159,7 @@ class PureHttp {
...axiosConfig
} as PureHttpRequestConfig;
// 单独处理自定义请求/响应回
// 单独处理自定义请求/响应回
return new Promise((resolve, reject) => {
PureHttp.axiosInstance
.request(config)