From add7a64f33833638304abeb87350965bc62d0fee Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期一, 28 八月 2023 14:31:16 +0800
Subject: [PATCH] modified: src/views/laboratory/measure/Add.vue modified: src/views/laboratory/role/index.vue
---
src/layout/components/Navbar.vue | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index be3b829..ba4d987 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -107,7 +107,7 @@
},
async logout() {
// await this.$store.dispatch('user/logout')
- localStorage.removeItem("user")
+ sessionStorage.removeItem("user")
this.$router.push(`/login?redirect=${this.$route.fullPath}`)
this.$router.replace({path: '/login'});
location.reload();
@@ -115,7 +115,7 @@
getUser(){
get(this.$url.info).then(res=>{
this.user = res.data
- localStorage.setItem("user",JSON.stringify(res.data))
+ sessionStorage.setItem("user",JSON.stringify(res.data))
})
}
}
--
Gitblit v1.9.3