no message
This commit is contained in:
24
app.vue
24
app.vue
@@ -14,18 +14,18 @@ const route = useRoute()
|
||||
// 是否是 生产环境
|
||||
const isProduction = import.meta.env.NODE_ENV === "production"
|
||||
|
||||
watchEffect(() => {
|
||||
if (typeof window !== "undefined" && route.path) {
|
||||
if (window._hmt) window._hmt.push(["_trackPageview", route.fullPath])
|
||||
if (window._czc) {
|
||||
let location = window.location
|
||||
let contentUrl = location.pathname + location.hash
|
||||
let refererUrl = "/"
|
||||
window._czc.push(["_trackPageview", contentUrl, refererUrl])
|
||||
window._czc.push(["_setAutoPageview", false])
|
||||
}
|
||||
}
|
||||
})
|
||||
// watchEffect(() => {
|
||||
// if (typeof window !== "undefined" && route.path) {
|
||||
// if (window._hmt) window._hmt.push(["_trackPageview", route.fullPath])
|
||||
// if (window._czc) {
|
||||
// let location = window.location
|
||||
// let contentUrl = location.pathname + location.hash
|
||||
// let refererUrl = "/"
|
||||
// window._czc.push(["_trackPageview", contentUrl, refererUrl])
|
||||
// window._czc.push(["_setAutoPageview", false])
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
|
||||
onMounted(() => {
|
||||
if (!isProduction) isNeedLogin.value = false
|
||||
|
||||
Reference in New Issue
Block a user