feat: update hm code

This commit is contained in:
Justineo 2021-02-02 17:57:29 +08:00
parent f00e011642
commit 9c55934886
No known key found for this signature in database
GPG Key ID: B73F0979CF18A0EA

View File

@ -1,10 +1,10 @@
export default ({ app }) => { export default ({ app }) => {
if (process.env.NODE_ENV !== 'production') return if (process.env.NODE_ENV !== 'production') return
var _hmt = window._hmt = window._hmt || [] var _hmt = (window._hmt = window._hmt || [])
var hm = document.createElement('script') var hm = document.createElement('script')
hm.src = 'https://hm.baidu.com/hm.js?d204d9e2f2ad504d6fe10939a9b5b588' hm.src = 'https://hm.baidu.com/hm.js?3b91e2b87603771f136a8c593a515811'
var s = document.getElementsByTagName('script')[0] var s = document.getElementsByTagName('script')[0]
s.parentNode.insertBefore(hm, s) s.parentNode.insertBefore(hm, s)