From 42da9626b7b16818528ff431d2edf3339036c12f Mon Sep 17 00:00:00 2001 From: Hooray Hu <304327508@qq.com> Date: Tue, 16 Jan 2024 09:55:54 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E7=99=BE=E5=BA=A6?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E7=9B=B8=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 2 -- src/utils/baidu.ts | 16 ---------------- 2 files changed, 18 deletions(-) delete mode 100755 src/utils/baidu.ts diff --git a/src/main.ts b/src/main.ts index f1943997..8ccf2a33 100755 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,3 @@ -import '@/utils/baidu' - import '@/utils/system.copyright' import FloatingVue from 'floating-vue' diff --git a/src/utils/baidu.ts b/src/utils/baidu.ts deleted file mode 100755 index 988dc50f..00000000 --- a/src/utils/baidu.ts +++ /dev/null @@ -1,16 +0,0 @@ -if (!import.meta.env.DEV) { - const _hmt = [] - _hmt.push(['_requirePlugin', 'UrlChangeTracker', { - shouldTrackUrlChange(newPath: any, oldPath: any) { - return newPath && oldPath - }, - }]); - (function () { - const hm = document.createElement('script') - hm.src = 'https://hm.baidu.com/hm.js?7bb58fdfd1fe8ab146d4b4f23686b768' - const s = document.getElementsByTagName('script')[0] - s.parentNode?.insertBefore(hm, s) - })() -} - -export {}