From e15708fe5aa87099932c31cbe3f43d42fa14db58 Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Tue, 22 Aug 2023 15:04:32 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E4=BF=AE=E6=94=B9=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E4=BB=A3=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 This reverts commit 3224c25fc471cacaf48332430aabb01fba37afa0. --- src/components/edit/about-pop.vue | 6 +++--- src/router/index.js | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/edit/about-pop.vue b/src/components/edit/about-pop.vue index d244b84..c8e401e 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.intermediary, (newValue, oldValue) => { + watch(() => props.popState, (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 425b76c..68557b7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -144,8 +144,7 @@ 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]) } }