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) {