From 3c3f049cc498e56d485936ba76e5adfd680c6839 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期五, 28 八月 2026 15:06:34 +0800
Subject: [PATCH] chore: gitignore 忽略打包静态目录 web/
---
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