注销机房用户清除token

This commit is contained in:
X1627315083
2024-01-15 17:40:12 +08:00
parent af500def80
commit 84f2898d28
2 changed files with 1 additions and 2 deletions

View File

@@ -97,8 +97,6 @@ router.beforeEach((to, from, next) => {
let isMurmur = JSON.parse(getIsMurmur)
if(isMurmur&& murmurStr){
const toName = to.name === 'login';
console.log(to);
if (toName) {
next({ name: 'home' });
} else {

View File

@@ -83,6 +83,7 @@ export default defineComponent({
message.success('successfully delete');
localStorage.removeItem('murmurStr')
setCookie("isMurmur", false);
WriteCookie("token");
})
.catch((res) => {
});