修复退出时,点击取消也退出系统的BUG
This commit is contained in:
@@ -105,9 +105,13 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('#loginOut').click(function () {
|
$('#loginOut').click(function () {
|
||||||
if (confirm("确认要退出系统吗?"))
|
if (confirm("确认要退出系统吗?")){
|
||||||
|
//确定
|
||||||
sessionStorage.removeItem("userId");
|
sessionStorage.removeItem("userId");
|
||||||
location.href = '/user/logout';
|
location.href = '/user/logout';
|
||||||
|
}else{
|
||||||
|
//取消
|
||||||
|
}
|
||||||
})
|
})
|
||||||
//IE下禁止选中
|
//IE下禁止选中
|
||||||
document.body.onselectstart = document.body.ondrag = function () {
|
document.body.onselectstart = document.body.ondrag = function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user