Przeglądaj źródła

fix: 退出登录后删除store中的用户信息

任一存 3 lat temu
rodzic
commit
f0ff438978
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/components/userInfo.vue

+ 1 - 0
src/components/userInfo.vue

@@ -29,6 +29,7 @@ export default {
     },
     },
     onClickLogout() {
     onClickLogout() {
       localStorage.setItem('token', '')
       localStorage.setItem('token', '')
+      localStorage.setItem('info', '')
       window.location.href = '/#/'
       window.location.href = '/#/'
     }
     }
   },
   },