Commit 2bbe94d14a9a8229a52db2f93aa084616d1e930e
1 parent
24e46747
fix: DEFECT-637 修复账号密码错误时,页面未弹出提示框
Showing
1 changed file
with
4 additions
and
3 deletions
| ... | ... | @@ -116,9 +116,10 @@ |
| 116 | 116 | mode: 'modal', //不要默认的错误提示 |
| 117 | 117 | }) |
| 118 | 118 | .catch((data) => { |
| 119 | - //登录失败返回的html,所以提示框什么都没有 | |
| 120 | - //去掉提示框 | |
| 121 | - // createMessage.error(data.message); | |
| 119 | + //登录失败如果是502,返回的html,那么提示框什么都没有 | |
| 120 | + if (data.message == 'Invalid username or password' && typeof data.message == 'string') { | |
| 121 | + createMessage.error(data.message); | |
| 122 | + } | |
| 122 | 123 | }); |
| 123 | 124 | if (userInfo) { |
| 124 | 125 | notification.success({ | ... | ... |