Commit 3b00ea42 authored by 前端-许佳敏's avatar 前端-许佳敏

fix: 统一1102状态码提示

parent 79d68245
......@@ -114,6 +114,15 @@ 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