From 938966275f210121edf576febbd78b7b9c915928 Mon Sep 17 00:00:00 2001 From: "zhigang.li" Date: Mon, 2 Jul 2018 18:17:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=82=B9=E5=87=BBanchor-link?= =?UTF-8?q?=E5=90=8E=E5=86=8D=E6=BB=9A=E5=8A=A8=EF=BC=8C=E7=84=B6=E5=90=8E?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=88=9A=E5=88=9A=E7=82=B9=E5=87=BB=E7=9A=84?= =?UTF-8?q?link=EF=BC=8C=E9=A1=B5=E9=9D=A2=E6=B2=A1=E6=9C=89=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E5=8F=8D=E5=BA=94=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/anchor/anchor-link.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/anchor/anchor-link.vue b/src/components/anchor/anchor-link.vue index fc291be6..3465603e 100644 --- a/src/components/anchor/anchor-link.vue +++ b/src/components/anchor/anchor-link.vue @@ -39,6 +39,8 @@ export default { methods: { goAnchor () { this.currentLink = this.href; + this.anchorCom.handleHashChange(); + this.anchorCom.handleScrollTo(); this.anchorCom.$emit('on-select', this.href); const isRoute = this.$router; if (isRoute) {