From a699b98fbbd52eec1a125425fea4de1babf837c3 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 18 十一月 2020 16:56:26 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/common.js | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/src/main/webapp/static/js/common.js b/src/main/webapp/static/js/common.js
index 2009a2e..a2f6af8 100644
--- a/src/main/webapp/static/js/common.js
+++ b/src/main/webapp/static/js/common.js
@@ -140,7 +140,7 @@
if (res.code === 200){
callback(res);
} else if (res.code === 403){
- window.location.href = baseUrl+"/login";
+ parent.location.href = baseUrl+"/login";
} else {
layer.msg(res.msg, {icon: 2});
}
@@ -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