From ed40d9fbd886c5c0fb0f3b0adeb1be1b3240a1dc Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期三, 30 八月 2023 18:02:18 +0800
Subject: [PATCH] 	modified:   src/api/inspection/rawmaterial.js 	modified:   src/layout/components/Sidebar/SidebarItem.vue 	modified:   src/router/index.js 	modified:   src/views/chart/work/index.vue 	modified:   src/views/inspectionManagement/reportForInspection/index.vue

---
 src/layout/components/Navbar.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 58c568e..0fe19aa 100644
--- a/src/layout/components/Navbar.vue
+++ b/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();
       
     },

--
Gitblit v1.9.3