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