fix: axios responseInterceptorsCatch

pull/12/head
xingyu 2023-05-14 17:31:23 +08:00
parent ac4180d2ce
commit 34106d1cfe
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
// axios配置 可自行根据项目进行更改,只需更改该文件即可,其他文件可以不动
// The axios configuration can be changed according to the project, just change the file, other files can be left unchanged
import type { AxiosResponse } from 'axios'
import type { AxiosInstance, AxiosResponse } from 'axios'
import { clone } from 'lodash-es'
import type { RequestOptions, Result } from '@/types/axios'
import type { AxiosTransform, CreateAxiosOptions } from './axiosTransform'
@ -205,7 +205,7 @@ const transform: AxiosTransform = {
/**
* @description:
*/
responseInterceptorsCatch: (axiosInstance: AxiosResponse, error: any) => {
responseInterceptorsCatch: (axiosInstance: AxiosInstance, error: any) => {
const { t } = useI18n()
const errorLogStore = useErrorLogStoreWithOut()
errorLogStore.addAjaxErrorInfo(error)