Commit 0717712d798a5b037eebbddfee9cfd508ae4ea3b
Merge branch '2.0' of https://github.com/iview/iview into 2.0
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) { | ... | ... |