backTop
This commit is contained in:
parent
3239ed9819
commit
4b19f87edf
1 changed files with 2 additions and 2 deletions
|
@ -67,8 +67,8 @@
|
|||
this.backTop = window.pageYOffset >= this.height;
|
||||
},
|
||||
back () {
|
||||
let scrollTop = document.documentElement.scrollTop||document.body.scrollTop;
|
||||
scrollTop(window, scrollTop, 0, this.duration);
|
||||
var sTop = document.documentElement.scrollTop||document.body.scrollTop;
|
||||
scrollTop(window, sTop, 0, this.duration);
|
||||
this.$emit('on-click');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue