This commit is contained in:
renhang 2017-05-25 18:32:59 +08:00
parent 4ed43a1798
commit 3239ed9819

View file

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