From 069ef85293bb4baa74dd9251e8b3fd8cc4355410 Mon Sep 17 00:00:00 2001
From: 董国庆 <364620639@qq.com>
Date: 星期四, 15 五月 2025 15:21:10 +0800
Subject: [PATCH] 实验方案管理详情和中止

---
 laboratory/src/layouts/components/HeaderNav.vue |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/laboratory/src/layouts/components/HeaderNav.vue b/laboratory/src/layouts/components/HeaderNav.vue
index d88ea34..24cd4b7 100644
--- a/laboratory/src/layouts/components/HeaderNav.vue
+++ b/laboratory/src/layouts/components/HeaderNav.vue
@@ -52,11 +52,11 @@
     },
     // 获取用户信息
     getUserInfo() {
-      this.userInfo = JSON.parse(localStorage.getItem('userInfo'))
+      this.userInfo = JSON.parse(sessionStorage.getItem('userInfo'))
     },
     // 退出登录
     outLogin() {
-      localStorage.clear()
+      sessionStorage.clear()
       this.$router.replace({ path: "/" });
     },
     // 关闭标签
@@ -73,7 +73,10 @@
     },
     // 跳转标签
     goTag(tag) {
-      this.$router.push(tag.path)
+        this.$router.push({
+            path: tag.path,
+            query: tag.query
+        })
     },
     handleWheel(e) {
       if (this.scrollTimer) {

--
Gitblit v1.7.1