From 9e04fb2a47b0ca9e974bf0b14ab11516b4b2b89f Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 9 Apr 2024 20:38:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=80=9A=E7=94=A8=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E=E9=94=99=E8=AF=AF=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=97=B6=E9=97=B4=E5=B1=95=E7=A4=BA=E4=B8=BA5s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1036999 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036999 --- frontend/src/api/http/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/api/http/index.ts b/frontend/src/api/http/index.ts index 2bbf7c2fee..4dbcb810da 100644 --- a/frontend/src/api/http/index.ts +++ b/frontend/src/api/http/index.ts @@ -162,7 +162,7 @@ const transform: AxiosTransform = { if (errorMessageMode === 'modal') { Modal.error({ title: t('api.errorTip'), content: errMessage }); } else if (errorMessageMode === 'message') { - Message.error(errMessage); + Message.error({ content: errMessage, duration: 5000 }); } return Promise.reject(error); }