mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
fixed send user stats issue
This commit is contained in:
@@ -33,13 +33,15 @@ Vue.use(ElementUI, { locale })
|
||||
Vue.config.productionTip = false
|
||||
|
||||
// 百度统计
|
||||
window._hmt = window._hmt || [];
|
||||
(function () {
|
||||
let hm = document.createElement('script')
|
||||
hm.src = 'https://hm.baidu.com/hm.js?c35e3a563a06caee2524902c81975add'
|
||||
let s = document.getElementsByTagName('script')[0]
|
||||
s.parentNode.insertBefore(hm, s)
|
||||
})()
|
||||
if (localStorage.getItem('useStats') !== '0') {
|
||||
window._hmt = window._hmt || [];
|
||||
(function () {
|
||||
let hm = document.createElement('script')
|
||||
hm.src = 'https://hm.baidu.com/hm.js?c35e3a563a06caee2524902c81975add'
|
||||
let s = document.getElementsByTagName('script')[0]
|
||||
s.parentNode.insertBefore(hm, s)
|
||||
})()
|
||||
}
|
||||
|
||||
// inject request api
|
||||
Vue.prototype.$request = request
|
||||
|
||||
@@ -401,7 +401,7 @@ export default {
|
||||
})
|
||||
},
|
||||
onView (row) {
|
||||
this.$router.push('/spiders/' + row._id)
|
||||
this.$router.push('/spiders/' + row._id)
|
||||
this.$st.sendEv('爬虫', '查看')
|
||||
},
|
||||
onPageChange () {
|
||||
|
||||
Reference in New Issue
Block a user