no message

This commit is contained in:
A1300399510 2023-12-18 11:08:45 +08:00
parent 1138eac28f
commit e0af963c4a
5 changed files with 41 additions and 14 deletions

2
dist/index.html vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -17,7 +17,26 @@ export default {
socketTask: null,
}
},
watch: {},
watch: {
// "$route": {
// handler(to, from) {
// console.log("1111111");
// //window._czc
// 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])
// }
// if (window._hmt) {
// if (to["path"]) window._hmt.push(["_trackPageview", to["fullPath"]])
// }
// },
// // immediate: true, //
// },
},
mounted() {
// console.log(new Date());
this.$store.dispatch("fetchHistoricalSearch") //

View File

@ -111,9 +111,15 @@ const router = new VueRouter({
// base: process.env.BASE_URL,
routes
})
let isInitialNavigation = true
router.beforeEach(async (to, from, next) => {
if (to.meta.title) document.title = getPageTitle(to.meta.title);
if (isInitialNavigation) {
isInitialNavigation = false
} else {
if (window._hmt) {
if (to.path) {
window._hmt.push(['_trackPageview', '/#' + to.fullPath])
@ -128,6 +134,8 @@ router.beforeEach(async (to, from, next) => {
window._czc.push(["_trackPageview", contentUrl, refererUrl])
}
}
next();
});