Merge pull request #1013 from itrenhang/2.0

backTop
This commit is contained in:
Aresn 2017-05-26 09:42:39 +08:00 committed by GitHub
commit 987ca8cf21

View file

@ -67,7 +67,8 @@
this.backTop = window.pageYOffset >= this.height;
},
back () {
scrollTop(window, document.body.scrollTop, 0, this.duration);
var sTop = document.documentElement.scrollTop||document.body.scrollTop;
scrollTop(window, sTop, 0, this.duration);
this.$emit('on-click');
}
}