Commit 225cb5e4 authored by 前端-许佳敏's avatar 前端-许佳敏

fix: 统一拦截1102状态码,显示后端返回的message

parent ddf035f0
......@@ -141,6 +141,14 @@ class ApiRequest {
return false
}
// 统一拦截 参数校验错误,显示后端返回的状态信息
// @todo 这里不需要国际化
if (res.code === 1102) {
message.error(res.message)
reject(res)
return false
}
if (res.code === 1000) {
if (options.ctlType === 'message') {
message.destroy()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment