From 938966275f210121edf576febbd78b7b9c915928 Mon Sep 17 00:00:00 2001 From: zhigang.li Date: Mon, 2 Jul 2018 18:17:15 +0800 Subject: [PATCH] 修复点击anchor-link后再滚动,然后点击刚刚点击的link,页面没有滚动反应的bug --- src/components/anchor/anchor-link.vue | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/src/components/anchor/anchor-link.vue b/src/components/anchor/anchor-link.vue index fc291be..3465603 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) { -- libgit2 0.21.4