增加页面端的根据token判断能否进入
This commit is contained in:
@@ -1627,8 +1627,9 @@
|
|||||||
|
|
||||||
if ((!getCookie("token") || localtoken != getCookie("token")) && isMobile() && !token) {
|
if ((!getCookie("token") || localtoken != getCookie("token")) && isMobile() && !token) {
|
||||||
window.location.href = './middle.html';
|
window.location.href = './middle.html';
|
||||||
} else if (!isMobile() && getCookie('token')) {
|
} else if (!isMobile() && !getCookie('sharetoken')) {
|
||||||
|
//
|
||||||
|
location.replace('https://ri.satabot.com/#/login?goRemote=1&clear=1');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1926,7 +1927,7 @@
|
|||||||
function logout() {
|
function logout() {
|
||||||
deleteCookie('userId');
|
deleteCookie('userId');
|
||||||
deleteCookie('token');
|
deleteCookie('token');
|
||||||
deleteCookie("ai-Token", "ai.satabot.com")
|
deleteCookie("sharetoken", "ai.satabot.com")
|
||||||
// 清空历史记录(黑科技)
|
// 清空历史记录(黑科技)
|
||||||
history.pushState(null, null, location.href);
|
history.pushState(null, null, location.href);
|
||||||
window.addEventListener('popstate', function () {
|
window.addEventListener('popstate', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user