修复退出时,点击取消也退出系统的BUG

This commit is contained in:
qiankunpingtai
2019-04-23 10:18:52 +08:00
parent 52f5020a92
commit 9f7ae56f71

View File

@@ -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 () {