no message
This commit is contained in:
@@ -25,6 +25,8 @@ onMounted(() => {
|
||||
const route = useRoute()
|
||||
|
||||
watch(route, (newValue, oldValue) => {
|
||||
console.log("1111111")
|
||||
|
||||
if (window._czc) {
|
||||
let location = window.location
|
||||
let contentUrl = location.pathname + location.hash
|
||||
|
||||
@@ -147,22 +147,22 @@ router.beforeEach((to, from, next) => {
|
||||
if (isInitialNavigation) {
|
||||
isInitialNavigation = false
|
||||
} else {
|
||||
return
|
||||
console.log("1111111,", to.path, to.fullPath);
|
||||
if (window._hmt) {
|
||||
if (to.path) {
|
||||
// window._hmt.push(['_trackPageview', '/#' + to.fullPath])
|
||||
window._hmt.push(['_trackPageview', to.fullPath])
|
||||
}
|
||||
}
|
||||
// return
|
||||
// console.log("1111111,", to.path, to.fullPath);
|
||||
// if (window._hmt) {
|
||||
// if (to.path) {
|
||||
// // window._hmt.push(['_trackPageview', '/#' + to.fullPath])
|
||||
// window._hmt.push(['_trackPageview', to.fullPath])
|
||||
// }
|
||||
// }
|
||||
|
||||
if (window._czc) {
|
||||
let location = window.location
|
||||
let contentUrl = location.pathname + location.hash
|
||||
let refererUrl = "/"
|
||||
// 用于发送某个URL的PV统计请求
|
||||
window._czc.push(["_trackPageview", contentUrl, refererUrl])
|
||||
}
|
||||
// if (window._czc) {
|
||||
// let location = window.location
|
||||
// let contentUrl = location.pathname + location.hash
|
||||
// let refererUrl = "/"
|
||||
// // 用于发送某个URL的PV统计请求
|
||||
// window._czc.push(["_trackPageview", contentUrl, refererUrl])
|
||||
// }
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user