退出登录问题

main
wangxia 2 years ago
parent 4fc486faf7
commit 597c16793c

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

Loading…
Cancel
Save