Преглед изворни кода

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

任一存 пре 4 година
родитељ
комит
f0ff438978
1 измењених фајлова са 1 додато и 0 уклоњено
  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 = '/#/'
     }
     }
   },
   },