Commit 830c458c078242e7203faa39b1cd76259397257f

Authored by 王富生
1 parent b0811500

登录模块提交

Showing 1 changed file with 3 additions and 3 deletions
resource/js/unit.js
@@ -330,14 +330,14 @@ function sysAjax(opts) { @@ -330,14 +330,14 @@ function sysAjax(opts) {
330 success: function (res, status, xhr) { 330 success: function (res, status, xhr) {
331 var msg = (typeof res.msg == 'string') && (res.msg.constructor == String) ? res.msg : res.errMsg; 331 var msg = (typeof res.msg == 'string') && (res.msg.constructor == String) ? res.msg : res.errMsg;
332 //成功 332 //成功
333 - if (res.errCode == "2003" || res.code=='2003') { 333 + if (res.code=='2003') {
334 //授权令牌不存在或已失效,请重新登录后在尝试 334 //授权令牌不存在或已失效,请重新登录后在尝试
335 window.location.href = '../../workreport/login/login.html' 335 window.location.href = '../../workreport/login/login.html'
336 - } else if (res.errCode == "2004" || res.code=='2004') { 336 + } else if (res.code=='2004') {
337 //授权令牌不合法,请重新登录收尝试 337 //授权令牌不合法,请重新登录收尝试
338 //alert(res.msg); 338 //alert(res.msg);
339 window.location.href = '../../workreport/login/login.html' 339 window.location.href = '../../workreport/login/login.html'
340 - } else if (res.errCode == "2005" || res.code=='2005') { 340 + } else if (res.code=='2005') {
341 //无此权限 341 //无此权限
342 alert(msg); 342 alert(msg);
343 } else { 343 } else {