diff --git a/src/utils/http/axios/index.ts b/src/utils/http/axios/index.ts index e580e91b..ad4de315 100644 --- a/src/utils/http/axios/index.ts +++ b/src/utils/http/axios/index.ts @@ -229,7 +229,7 @@ const transform: AxiosTransform = { errorLogStore.addAjaxErrorInfo(error) const { response, code, message, config } = error || {} const errorMessageMode = config?.requestOptions?.errorMessageMode || 'none' - const msg: string = response?.data?.error?.message ?? '' + const msg: string = response?.data?.msg ?? '' const err: string = error?.toString?.() ?? '' let errMessage = ''