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 || '服务器端错误',