mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-10 20:57:10 +08:00
refactor: 优化 HTTP 错误提示显示时长
This commit is contained in:
@@ -36,7 +36,10 @@ const http: AxiosInstance = axios.create({
|
|||||||
|
|
||||||
const handleError = (msg: string) => {
|
const handleError = (msg: string) => {
|
||||||
if (msg.length >= 15) {
|
if (msg.length >= 15) {
|
||||||
return notificationErrorWrapper(msg || '服务器端错误')
|
return notificationErrorWrapper({
|
||||||
|
content: msg || '服务器端错误',
|
||||||
|
duration: 5 * 1000,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
return messageErrorWrapper({
|
return messageErrorWrapper({
|
||||||
content: msg || '服务器端错误',
|
content: msg || '服务器端错误',
|
||||||
|
Reference in New Issue
Block a user