From 677e1101e6cf4451abd8a876cc1d0ddd26a10b88 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Wed, 3 Dec 2025 00:57:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B3=A8=E9=94=80?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=97=B6=EF=BC=8C=E7=AC=AC=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=B3=A8=E9=94=80=E8=AF=B7=E6=B1=82=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/certd-client/src/api/service.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/ui/certd-client/src/api/service.ts b/packages/ui/certd-client/src/api/service.ts index c65c0ac5b..12418ab3c 100644 --- a/packages/ui/certd-client/src/api/service.ts +++ b/packages/ui/certd-client/src/api/service.ts @@ -47,11 +47,12 @@ function createService() { //如果不需要解包 return dataAxios; } - + //@ts-ignore + const showErrorNotify = response?.config?.showErrorNotify; // 这个状态码是和后端约定的 if (dataAxios?.code === undefined) { // 如果没有 code 代表这不是项目后端开发的接口 - errorCreate(`非标准返回:${dataAxios}, ${response.config.url}`); + errorCreate(`非标准返回:${dataAxios}, ${response.config.url}`, showErrorNotify); return dataAxios; } const { code } = dataAxios; @@ -70,8 +71,6 @@ function createService() { // @ts-ignore response.config.onError(err); } - //@ts-ignore - const showErrorNotify = response?.config?.showErrorNotify; errorCreate(`${errorMessage}: ${response.config.url}`, showErrorNotify, dataAxios); } },