修改统计代码一个#号

This commit is contained in:
A1300399510 2023-08-22 15:01:02 +08:00
parent 1b9eee7b92
commit 3224c25fc4
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])
}
}