退出登录问题

main
wangxia 2 years ago
parent 4fc486faf7
commit 597c16793c

@ -120,8 +120,8 @@ const goNotice = () => {
}; };
const setLogout = () => { const setLogout = () => {
commonJS.gConfirmModal("退出", "确定要退出登录吗?", () => { commonJS.gConfirmModal("退出", "确定要退出登录吗?", () => {
logout() // logout()
.then(() => { // .then(() => {
localStorage.removeItem("LOGIN_DATA"); localStorage.removeItem("LOGIN_DATA");
localStorage.removeItem("daotian_to_admin_token"); localStorage.removeItem("daotian_to_admin_token");
localStorage.removeItem("DAOTIAN_token"); localStorage.removeItem("DAOTIAN_token");
@ -129,10 +129,10 @@ const setLogout = () => {
localStorage.removeItem("DAOTIAN_userinfo_avatar"); localStorage.removeItem("DAOTIAN_userinfo_avatar");
localStorage.removeItem("DAOTIAN_userinfo_roleid"); localStorage.removeItem("DAOTIAN_userinfo_roleid");
commonJS.goWiondowOpenPage("login"); commonJS.goWiondowOpenPage("login");
}) // })
.catch((err) => { // .catch((err) => {
console.log(err); // console.log(err);
}); // });
}); });
}; };
const dropShow = ref(false); const dropShow = ref(false);

Loading…
Cancel
Save