no message

This commit is contained in:
A1300399510
2023-12-15 15:11:46 +08:00
parent 62677e7c81
commit e3a22c1d7c
6 changed files with 21 additions and 19 deletions

View File

@@ -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

View File

@@ -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])
// }
}
})