no message
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user