From 8abd4db7f43087d804c297f447508a3a3021a578 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <xltys1995>
Date: 星期四, 27 八月 2020 13:52:34 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/common.js | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/main/webapp/static/js/common.js b/src/main/webapp/static/js/common.js
index fa66fe0..2f45f5f 100644
--- a/src/main/webapp/static/js/common.js
+++ b/src/main/webapp/static/js/common.js
@@ -1,8 +1,6 @@
-// 鐢熶骇
-// var baseUrl = "/wcs";
-// 娴嬭瘯
-var baseUrl = "";
+var baseUrl = "/gdwcs";
+// 璧嬪��
function setVal(el, val) {
if (el.text() !== val){
el.html(val);
@@ -85,7 +83,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,9 +140,9 @@
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);
+ layer.msg(res.msg, {icon: 2});
}
},
error: function (res, type) {
--
Gitblit v1.9.1