[前端] 登出 remove cookie JWT
This commit is contained in:
parent
9a3b098ee0
commit
a00f368f46
@ -1081,7 +1081,8 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
|
||||
});
|
||||
|
||||
onEvent("click", "#logout", function () {
|
||||
localStorage.removeItem("JWT-Authorization");
|
||||
localStorage.removeItem("JWT-Authorization");
|
||||
cookies.remove("JWT-Authorization");
|
||||
location.href = "/logout";
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user