修改统计代码一个#号
This commit is contained in:
@@ -38,13 +38,13 @@ export default {
|
|||||||
|
|
||||||
let tab = ref("person"); // person intermediary more
|
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"
|
// if (props['intermediary'] == 1) tab.value = "intermediary"
|
||||||
// else tab.value = "person"
|
// else tab.value = "person"
|
||||||
|
|
||||||
watch(() => props.popState, (newValue, oldValue) => {
|
watch(() => props.intermediary, (newValue, oldValue) => {
|
||||||
// 在这里处理popState属性的变化
|
// 在这里处理popState属性的变化
|
||||||
console.log('popState属性发生变化', newValue, oldValue);
|
// console.log('popState属性发生变化', newValue, oldValue);
|
||||||
|
|
||||||
if (newValue == 1) tab.value = "intermediary"
|
if (newValue == 1) tab.value = "intermediary"
|
||||||
else tab.value = "person"
|
else tab.value = "person"
|
||||||
|
|||||||
@@ -144,7 +144,8 @@ router.beforeEach((to, from, next) => {
|
|||||||
|
|
||||||
if (window._hmt) {
|
if (window._hmt) {
|
||||||
if (to.path) {
|
if (to.path) {
|
||||||
window._hmt.push(['_trackPageview', '/#' + to.fullPath])
|
// window._hmt.push(['_trackPageview', '/#' + to.fullPath])
|
||||||
|
window._hmt.push(['_trackPageview', to.fullPath])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user