解决登录超时之后不退出的bug

This commit is contained in:
季圣华
2020-06-11 22:18:52 +08:00
parent c212ae6feb
commit 07b489356b

View File

@@ -11,12 +11,13 @@ $.ajax({
sessionStorage.setItem("userId", user.id);
if (user.username) {
$(".main-header .user-menu .hidden-xs,.main-sidebar .info p").text(user.username);
} else {
top.location.href = '/login.html';
}
} else {
top.location.href = '/login.html';
}
} else {
top.location.href = '/login.html';
}
},
error: function () {
top.location.href = '/login.html';
}
});
});