Commit 938966275f210121edf576febbd78b7b9c915928

Authored by zhigang.li
1 parent cf9a399e

修复点击anchor-link后再滚动,然后点击刚刚点击的link,页面没有滚动反应的bug

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
src/components/anchor/anchor-link.vue
... ... @@ -39,6 +39,8 @@ export default {
39 39 methods: {
40 40 goAnchor () {
41 41 this.currentLink = this.href;
  42 + this.anchorCom.handleHashChange();
  43 + this.anchorCom.handleScrollTo();
42 44 this.anchorCom.$emit('on-select', this.href);
43 45 const isRoute = this.$router;
44 46 if (isRoute) {
... ...