更新
This commit is contained in:
parent
1346ab3959
commit
9352fd2a75
@ -626,13 +626,12 @@ $userInfo = [
|
|||||||
time: 2000,
|
time: 2000,
|
||||||
shade: 0.3
|
shade: 0.3
|
||||||
}, function () {
|
}, function () {
|
||||||
// 获取当前页面URL,如果是从其他页面跳转来的,则返回上一页
|
// 获取当前页面URL
|
||||||
var currentUrl = window.location.href;
|
var currentUrl = window.location.href;
|
||||||
var referrer = document.referrer;
|
|
||||||
|
|
||||||
// 如果是从登录页面跳转来的,则返回上一页
|
// 如果当前页面是登录页面,则跳转到首页
|
||||||
if (referrer && referrer.includes('/index/user/login')) {
|
if (currentUrl.includes('/index/user/login')) {
|
||||||
window.location.href = referrer;
|
window.location.href = '/index.html';
|
||||||
} else {
|
} else {
|
||||||
// 否则刷新当前页面
|
// 否则刷新当前页面
|
||||||
window.location.href = currentUrl + '?t=' + new Date().getTime();
|
window.location.href = currentUrl + '?t=' + new Date().getTime();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user