提交 de9e343d 编写于 作者: big_hedgehog01's avatar big_hedgehog01

修改页面一直显示错误框的问题,该值为秒,而不是毫秒

上级 f316a953
......@@ -27,7 +27,7 @@ const errorHandler = (error) => {
}
notification.error({
message: message,
duration: 5 * 1000
duration: 5
})
// return Promise.reject(error) //注释该行,否则接口请求失败会一直请求刷新错误数据,这里保证请求一次
}
......@@ -111,7 +111,8 @@ request.interceptors.response.use((res) => {
}
} else if (code !== 200) {
notification.error({
message: msg
message: msg,
duration: 5
})
} else {
return res.data
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册