From 72a8ea8b3df5f8ff2ccd49bd951ded5deb2e1593 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期五, 28 八月 2026 11:39:24 +0800
Subject: [PATCH] fix: 数据导入目录浏览/批量导入数量上限,防浏览器渲染与请求爆炸

---
 traffic-audit-web/src/main.js |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/traffic-audit-web/src/main.js b/traffic-audit-web/src/main.js
index 6b77a3f..6ff9576 100644
--- a/traffic-audit-web/src/main.js
+++ b/traffic-audit-web/src/main.js
@@ -7,6 +7,19 @@
 Vue.use(ElementUI)
 Vue.config.productionTip = false
 
+// 鍏ㄥ眬鐧诲嚭锛氭竻闄ょ櫥褰曟�佸苟鍥炵櫥褰曢〉锛堝悇椤甸潰渚ц竟鏍忋�岄��鍑虹櫥褰曘�嶈彍鍗曞叡鐢級
+Vue.mixin({
+  methods: {
+    logout() {
+      localStorage.removeItem('token')
+      localStorage.removeItem('username')
+      localStorage.removeItem('realName')
+      localStorage.removeItem('modules')
+      this.$router.push('/login')
+    }
+  }
+})
+
 new Vue({
   router,
   render: h => h(App)

--
Gitblit v1.9.1