From d25bfde3f5ebc9fd8402cc60a3e798f627d3f587 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期四, 27 八月 2026 16:26:01 +0800
Subject: [PATCH] docs: 新增打包与部署说明(md + word 版,共享同事)
---
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