Browse Source

去除自动跳转登录页

linehang 6 years ago
parent
commit
c584a3b438
1 changed files with 4 additions and 4 deletions
  1. 4 4
      api/http-request.js

+ 4 - 4
api/http-request.js

@ -8,10 +8,10 @@
    localStorage.setItem('WLYY_IMEI', IMEI)
    $.support.cors = true;
    if(publish_version) { // 生产环境配置
        server = "http://www.xmtyw.cn/wlyy/"
        server = "http://www.xmtyw.cn/wlyytest/"
        imserver = "http://27.155.101.77:3000/api/v2";
        socketUrl = "http://27.155.101.77:3000";
        articleServer = "http://www.xmtyw.cn/wlyy/"
        articleServer = "http://www.xmtyw.cn/wlyytest/"
        loginUrl = "../../login/login.html";
        imgServer = "http://www.xmtyw.cn/";
        if(isInner){
@ -48,7 +48,7 @@
            userAgent = JSON.parse(userAgent)
        } catch(e) {
            toastr && toastr.warning("登录失效,请关闭当前弹窗前往PC IM重新登录")
            toLoginPage()
//          toLoginPage()
        }
    } else {
        toLoginPage()
@ -223,7 +223,7 @@
            if(count == 1){
//          	console.log(tip)
				toastr && toastr.warning(tip)
            	toLoginPage()
//          	toLoginPage()
            }
        }
    }