Revert "Revert "修改统计代码一个#号""

This reverts commit e15708fe5a.
This commit is contained in:
A1300399510
2023-08-22 15:05:34 +08:00
parent e15708fe5a
commit a0fb929efd
2 changed files with 5 additions and 4 deletions

View File

@@ -38,13 +38,13 @@ export default {
let tab = ref("person"); // person intermediary more
console.log("props['intermediary']", props['intermediary']);
// console.log("props['intermediary']", props['intermediary']);
// if (props['intermediary'] == 1) tab.value = "intermediary"
// else tab.value = "person"
watch(() => props.popState, (newValue, oldValue) => {
watch(() => props.intermediary, (newValue, oldValue) => {
// 在这里处理popState属性的变化
console.log('popState属性发生变化', newValue, oldValue);
// console.log('popState属性发生变化', newValue, oldValue);
if (newValue == 1) tab.value = "intermediary"
else tab.value = "person"

View File

@@ -144,7 +144,8 @@ router.beforeEach((to, from, next) => {
if (window._hmt) {
if (to.path) {
window._hmt.push(['_trackPageview', '/#' + to.fullPath])
// window._hmt.push(['_trackPageview', '/#' + to.fullPath])
window._hmt.push(['_trackPageview', to.fullPath])
}
}