From 75bdffbfab151c40a79d70f1e7e6844c4c39c605 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期三, 28 八月 2024 14:49:40 +0800
Subject: [PATCH] remove 百度统计

---
 /dev/null   |   23 -----------------------
 src/main.ts |    1 -
 2 files changed, 0 insertions(+), 24 deletions(-)

diff --git a/src/main.ts b/src/main.ts
index 76c7247..d45d5cb 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -37,7 +37,6 @@
 
 import './permission'
 
-import '@/plugins/tongji' // 鐧惧害缁熻
 import Logger from '@/utils/Logger'
 
 import VueDOMPurifyHTML from 'vue-dompurify-html' // 瑙e喅v-html 鐨勫畨鍏ㄩ殣鎮�
diff --git a/src/plugins/tongji/index.ts b/src/plugins/tongji/index.ts
deleted file mode 100644
index ec261a1..0000000
--- a/src/plugins/tongji/index.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import router from '@/router'
-
-// 鐢ㄤ簬 router push
-window._hmt = window._hmt || []
-// HM_ID
-const HM_ID = import.meta.env.VITE_APP_BAIDU_CODE
-;(function () {
-  // 鏈夊�肩殑鏃跺�欙紝鎵嶅紑鍚�
-  if (!HM_ID) {
-    return
-  }
-  const hm = document.createElement('script')
-  hm.src = 'https://hm.baidu.com/hm.js?' + HM_ID
-  const s = document.getElementsByTagName('script')[0]
-  s.parentNode.insertBefore(hm, s)
-})()
-
-router.afterEach(function (to) {
-  if (!HM_ID) {
-    return
-  }
-  _hmt.push(['_trackPageview', to.fullPath])
-})

--
Gitblit v1.9.3