From 3851c418fe571a4605a808d2ff86000a6f29c70f Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期一, 28 八月 2023 14:30:23 +0800 Subject: [PATCH] new file: src/assets/404_images/login-bg.png new file: src/assets/404_images/login-form-bg.png modified: src/components/experiment/checkTheReport/index.vue modified: src/views/chart/work/index.vue modified: src/views/experiment/checkTheReport/index.vue modified: src/views/laboratory/measure/index.vue new file: src/views/login/2.vue modified: src/views/login/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