From b1be1697722fff6b7b35dc614fd08be96716a3d1 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期二, 01 九月 2026 10:55:46 +0800
Subject: [PATCH] docs: 数据导入模板文件入库(城市客运出租车信息、公路旅客个体客运量汇总)

---
 traffic-audit-web/src/main.js |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/traffic-audit-web/src/main.js b/traffic-audit-web/src/main.js
index 6ff9576..44e467e 100644
--- a/traffic-audit-web/src/main.js
+++ b/traffic-audit-web/src/main.js
@@ -10,11 +10,19 @@
 // 鍏ㄥ眬鐧诲嚭锛氭竻闄ょ櫥褰曟�佸苟鍥炵櫥褰曢〉锛堝悇椤甸潰渚ц竟鏍忋�岄��鍑虹櫥褰曘�嶈彍鍗曞叡鐢級
 Vue.mixin({
   methods: {
+    // el-menu 鍚岃矾鐢卞鑸紙NavigationDuplicated锛夋椂 Element UI 浼氭妸楂樹寒鍥炴粴涓虹偣鍑诲墠鏃у�硷紱
+    // 鐐瑰嚮鍚庡欢杩熶竴涓畯浠诲姟寮哄埗绾犳锛堝畯浠诲姟鏅氫簬 push 鐨勫井浠诲姟鍥炶皟锛屼繚璇佹渶缁堥珮浜纭級銆�
+    onMenuSelect(index) {
+      setTimeout(() => {
+        const menu = this.$refs.sideMenu
+        if (menu && menu.activeIndex !== index) menu.activeIndex = index
+      }, 0)
+    },
     logout() {
-      localStorage.removeItem('token')
-      localStorage.removeItem('username')
-      localStorage.removeItem('realName')
-      localStorage.removeItem('modules')
+      sessionStorage.removeItem('token')
+      sessionStorage.removeItem('username')
+      sessionStorage.removeItem('realName')
+      sessionStorage.removeItem('modules')
       this.$router.push('/login')
     }
   }

--
Gitblit v1.9.1