Merge pull request #4014 from lison16/anchor

修复点击anchor-link后再滚动,然后点击刚刚点击的link,页面没有滚动反应的bug
This commit is contained in:
Aresn 2018-07-02 18:32:49 +08:00 committed by GitHub
commit 33ab743798
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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