chore: 升级axios至最新版

This commit is contained in:
xiaoxian521
2023-05-03 15:00:00 +08:00
parent bccd27ad30
commit b5750dcba1
3 changed files with 26 additions and 26 deletions

View File

@@ -60,7 +60,7 @@ class PureHttp {
/** 请求拦截 */
private httpInterceptorsRequest(): void {
PureHttp.axiosInstance.interceptors.request.use(
async (config: PureHttpRequestConfig) => {
async (config: PureHttpRequestConfig): Promise<any> => {
// 开启进度条动画
NProgress.start();
// 优先判断post/get等方法是否传入回掉否则执行初始化设置等回掉