index.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <div></div>
  3. </template>
  4. <script lang="ts" setup>
  5. // @ts-nocheck
  6. defineOptions({
  7. name: 'VabStatistics',
  8. })
  9. // 网站访问量统计 如不需要请自行注释
  10. onBeforeMount(() => {
  11. if (location.hostname !== 'localhost' && !location.hostname.includes('127') && !location.hostname.includes('192')) {
  12. ;(function () {
  13. const hm = document.createElement('script')
  14. let k = '820b686671af452e8a4e18952ce946d8'
  15. if (location.hostname.includes('beautiful') || location.hostname.includes('vuejs-core')) k = '9578a46b371ba85ee55bc868d6b30692'
  16. hm.src = `//hm.baidu.com/hm.js?${k}`
  17. const s: any = document.querySelectorAll('script')[0]
  18. s.parentNode.insertBefore(hm, s)
  19. })()
  20. ;(function (c, l, a, r, i, t, y) {
  21. c[a] =
  22. c[a] ||
  23. function () {
  24. // eslint-disable-next-line prefer-rest-params
  25. ;(c[a].q = c[a].q || []).push(arguments)
  26. }
  27. t = l.createElement(r)
  28. t.async = 1
  29. t.src = `//www.clarity.ms/tag/${i}`
  30. y = l.getElementsByTagName(r)[0]
  31. y.parentNode.insertBefore(t, y)
  32. })(window, document, 'clarity', 'script', 'j9de7dmm7n')
  33. }
  34. })
  35. </script>