|
@@ -1,5 +1,6 @@
|
|
|
import { Toast } from "antd-mobile";
|
|
|
import axios, { AxiosInstance, AxiosResponse, InternalAxiosRequestConfig } from "axios";
|
|
|
+
|
|
|
import type { AxiosOptions } from "./type";
|
|
|
type Result<T = any> = {
|
|
|
code: number;
|
|
@@ -59,6 +60,7 @@ export default class Request {
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
return config;
|
|
|
},
|
|
|
(error) => {
|
|
@@ -79,6 +81,7 @@ export default class Request {
|
|
|
return res;
|
|
|
},
|
|
|
(error) => {
|
|
|
+
|
|
|
if (responseInterceptorCatch) {
|
|
|
responseInterceptorCatch(error);
|
|
|
}
|