mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-04 21:19:52 +08:00
fix(通用设置): 接口返回错误信息时间展示为5s
--bug=1036999 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036999
This commit is contained in:
parent
859eedfa12
commit
9e04fb2a47
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user