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;
|
this.backTop = window.pageYOffset >= this.height;
|
||||||
},
|
},
|
||||||
back () {
|
back () {
|
||||||
var sTop = document.documentElement.scrollTop||document.body.scrollTop;
|
const sTop = document.documentElement.scrollTop || document.body.scrollTop;
|
||||||
scrollTop(window, sTop, 0, this.duration);
|
scrollTop(window, sTop, 0, this.duration);
|
||||||
this.$emit('on-click');
|
this.$emit('on-click');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue