no message

This commit is contained in:
A1300399510
2023-10-19 14:04:51 +08:00
parent e34c49efe6
commit 267515359b
4 changed files with 16 additions and 15 deletions

View File

@@ -121,7 +121,8 @@ const routes = [
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
// history: createWebHistory(process.env.BASE_URL),
history: createWebHistory(),
mode: "history",
routes,
scrollBehavior(to, from, savedPosition) {
@@ -143,19 +144,19 @@ router.beforeEach((to, from, next) => {
if (window._hmt) {
if (to.path) {
// window._hmt.push(['_trackPageview', '/#' + to.fullPath])
window._hmt.push(['_trackPageview', to.fullPath])
}
}
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])
}
})
router.afterEach(() => {