From 694cb2277a3d7ad141ef9f0418d631a77f472673 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 11 九月 2020 17:31:09 +0800
Subject: [PATCH] #优化主流程事务性
---
src/main/webapp/static/js/common.js | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/src/main/webapp/static/js/common.js b/src/main/webapp/static/js/common.js
index fdc899f..2009a2e 100644
--- a/src/main/webapp/static/js/common.js
+++ b/src/main/webapp/static/js/common.js
@@ -1,9 +1,4 @@
-// 鐢熶骇
-// var baseUrl = "/wcs";
-// 娴嬭瘯
-var baseUrl = "";
-// 绯荤粺杩愯鐘舵��
-var systemRunning = true;
+var baseUrl = "/jswcs";
// 璧嬪��
function setVal(el, val) {
@@ -88,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)
}
@@ -145,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