Commit 2bbe94d14a9a8229a52db2f93aa084616d1e930e

Authored by fengtao
1 parent 24e46747

fix: DEFECT-637 修复账号密码错误时,页面未弹出提示框

@@ -116,9 +116,10 @@ @@ -116,9 +116,10 @@
116 mode: 'modal', //不要默认的错误提示 116 mode: 'modal', //不要默认的错误提示
117 }) 117 })
118 .catch((data) => { 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 if (userInfo) { 124 if (userInfo) {
124 notification.success({ 125 notification.success({