refactor: 优化 HTTP 错误提示显示时长

This commit is contained in:
2025-04-01 21:37:32 +08:00
parent 4b073ef5aa
commit 4b1486a158

View File

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