zouyu
2023-09-05 48ad70d6c9dca8d62d0c3120f8dba640272db4a5
src/layout/components/Navbar.vue
@@ -108,8 +108,9 @@
    async logout() {
      // await this.$store.dispatch('user/logout')
      sessionStorage.removeItem("user")
      this.$router.push(`/login?redirect=${this.$route.fullPath}`)
      this.$router.replace({ path: '/login' });
      localStorage.removeItem("autoenter");
      this.$router.push(`/login?redirect=${this.$route.fullPath}`)
      this.$router.replace({path: '/login'});
      location.reload();
      
    },