Commit 07b48935 authored by 季圣华's avatar 季圣华
Browse files

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

parent c212ae6f
...@@ -11,12 +11,13 @@ $.ajax({ ...@@ -11,12 +11,13 @@ $.ajax({
sessionStorage.setItem("userId", user.id); sessionStorage.setItem("userId", user.id);
if (user.username) { if (user.username) {
$(".main-header .user-menu .hidden-xs,.main-sidebar .info p").text(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';
} }
}); });
\ No newline at end of file
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