fix(通用设置): 接口返回错误信息时间展示为5s

--bug=1036999 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036999
This commit is contained in:
guoyuqi 2024-04-09 20:38:34 +08:00 committed by 刘瑞斌
parent 859eedfa12
commit 9e04fb2a47

View File

@ -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);
}