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