From 4c30a5d4e4d35b3d78355f0c2d8edf90b31a1b23 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 23 九月 2020 14:55:29 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/common.js |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/main/webapp/static/js/common.js b/src/main/webapp/static/js/common.js
index bda3a25..53a1d93 100644
--- a/src/main/webapp/static/js/common.js
+++ b/src/main/webapp/static/js/common.js
@@ -1,8 +1,4 @@
-// 鐢熶骇
-// var baseUrl = "/wcs";
-// 娴嬭瘯
-var baseUrl = "";
-
+var baseUrl = "/jswcs";
 
 // 璧嬪��
 function setVal(el, val) {
@@ -144,9 +140,9 @@
                     if (res.code === 200){
                         callback(res);
                     } else if (res.code === 403){
-                        window.location.href = baseUrl+"/login";
+                        parent.location.href = baseUrl+"/login";
                     }  else {
-                        alert(res.msg);
+                        layer.msg(res.msg, {icon: 2});
                     }
                 },
                 error: function (res, type) {

--
Gitblit v1.9.1