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 {}