From 3224c25fc471cacaf48332430aabb01fba37afa0 Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Tue, 22 Aug 2023 15:01:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=9F=E8=AE=A1=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E4=B8=80=E4=B8=AA#=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/edit/about-pop.vue | 6 +++--- src/router/index.js | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/edit/about-pop.vue b/src/components/edit/about-pop.vue index c8e401e..d244b84 100644 --- a/src/components/edit/about-pop.vue +++ b/src/components/edit/about-pop.vue @@ -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" diff --git a/src/router/index.js b/src/router/index.js index 68557b7..425b76c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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]) } }