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 330 success: function (res, status, xhr) {
331 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 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 338 //alert(res.msg);
339 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 342 alert(msg);
343 343 } else {
... ...