Fixiaobai
2023-08-30 02ec46f12e8df202391727da8f80e14d66e3642c
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();
      
    },