update Backtop
This commit is contained in:
parent
987ca8cf21
commit
12f7b3a1e3
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@
|
|||
this.backTop = window.pageYOffset >= this.height;
|
||||
},
|
||||
back () {
|
||||
var sTop = document.documentElement.scrollTop||document.body.scrollTop;
|
||||
const sTop = document.documentElement.scrollTop || document.body.scrollTop;
|
||||
scrollTop(window, sTop, 0, this.duration);
|
||||
this.$emit('on-click');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue