Sfoglia il codice sorgente

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

任一存 3 anni fa
parent
commit
f0ff438978
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/components/userInfo.vue

+ 1 - 0
src/components/userInfo.vue

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