#
luxiaotao1123
2020-07-11 8a96bf76876eab7f4d1bf81bfb6e5b4cb0a72a0f
src/main/webapp/static/js/common.js
@@ -2,7 +2,10 @@
// var baseUrl = "/wcs";
// 测试
var baseUrl = "";
// 系统运行状态
var systemRunning = true;
// 赋值
function setVal(el, val) {
    if (el.text() !== val){
        el.html(val);
@@ -85,7 +88,7 @@
                        (child?parent:window).$('.'+res.data[i].code).css("display", "inline-block");
                    }
                } else if (res.code === 403){
                    top.location.href = baseUrl;
                    window.location.href = baseUrl;
                } else {
                    layer.msg(res.msg)
                }
@@ -142,7 +145,7 @@
                    if (res.code === 200){
                        callback(res);
                    } else if (res.code === 403){
                        top.location.href = baseUrl+"/login";
                        window.location.href = baseUrl+"/login";
                    }  else {
                        alert(res.msg);
                    }