Commit 0717712d798a5b037eebbddfee9cfd508ae4ea3b

Authored by 梁灏
2 parents 599d4c90 33ab7437

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,6 +39,8 @@ export default {
39 methods: { 39 methods: {
40 goAnchor () { 40 goAnchor () {
41 this.currentLink = this.href; 41 this.currentLink = this.href;
  42 + this.anchorCom.handleHashChange();
  43 + this.anchorCom.handleScrollTo();
42 this.anchorCom.$emit('on-select', this.href); 44 this.anchorCom.$emit('on-select', this.href);
43 const isRoute = this.$router; 45 const isRoute = this.$router;
44 if (isRoute) { 46 if (isRoute) {