"src/main/java/net/git@ustchcs.com:gujinli1118/MCMS.git" did not exist on "7fbb94f5595febc145aea70ec6e56e78f0aa96d3"
Commit 9f7ae56f authored by qiankunpingtai's avatar qiankunpingtai
Browse files

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

parent 52f5020a
...@@ -105,9 +105,13 @@ ...@@ -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 () {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment