From 4b1486a158866cfb76eed1c6d48e8b505ac9b95f Mon Sep 17 00:00:00 2001 From: Charles7c Date: Tue, 1 Apr 2025 21:37:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=20HTTP=20?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA=E6=98=BE=E7=A4=BA=E6=97=B6?= =?UTF-8?q?=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/http.ts b/src/utils/http.ts index c956053..58a9360 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -36,7 +36,10 @@ const http: AxiosInstance = axios.create({ const handleError = (msg: string) => { if (msg.length >= 15) { - return notificationErrorWrapper(msg || '服务器端错误') + return notificationErrorWrapper({ + content: msg || '服务器端错误', + duration: 5 * 1000, + }) } return messageErrorWrapper({ content: msg || '服务器端错误',