From 483e2284c510bb6ed9d80164c3f48ccee6e892bb Mon Sep 17 00:00:00 2001 From: K <1175047471@qq.com> Date: Thu, 18 Apr 2024 20:11:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AF=B7=E6=B1=82=E9=94=99=E8=AF=AF=20m?= =?UTF-8?q?essage=20=E8=8E=B7=E5=8F=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http/axios/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ''