From ebcaed76a00f824e57ccd7e2c38efe725e160374 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 17 十一月 2020 16:02:01 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/common.js |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/static/js/common.js b/src/main/webapp/static/js/common.js
index e4ef932..a2f6af8 100644
--- a/src/main/webapp/static/js/common.js
+++ b/src/main/webapp/static/js/common.js
@@ -140,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) {
@@ -157,3 +157,15 @@
         return http
     }) : "object" == typeof module && module.exports ? module.exports = http : n.http = http
 }(this);
+
+/**
+ * 鑾峰彇url閿�煎
+ */
+function getUrlVal(key) {
+    var reg = new RegExp('(^|&)' + key + '=([^&]*)(&|$)', 'i');
+    var r = window.location.search.substr(1).match(reg);
+    if (r != null) {
+        return unescape(r[2]);
+    }
+    return null;
+}
\ No newline at end of file

--
Gitblit v1.9.1