修复点击anchor-link后再滚动,然后点击刚刚点击的link,页面没有滚动反应的bug
This commit is contained in:
parent
cf9a399e7e
commit
938966275f
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue