This commit is contained in:
云泽网 2025-05-27 01:37:26 +08:00
parent 1346ab3959
commit 9352fd2a75

View File

@ -626,13 +626,12 @@ $userInfo = [
time: 2000,
shade: 0.3
}, function () {
// 获取当前页面URL,如果是从其他页面跳转来的,则返回上一页
// 获取当前页面URL
var currentUrl = window.location.href;
var referrer = document.referrer;
// 如果是从登录页面跳转来的,则返回上一
if (referrer && referrer.includes('/index/user/login')) {
window.location.href = referrer;
// 如果当前页面是登录页面,则跳转到首
if (currentUrl.includes('/index/user/login')) {
window.location.href = '/index.html';
} else {
// 否则刷新当前页面
window.location.href = currentUrl + '?t=' + new Date().getTime();