Commit 12f7b3a1e3fb46eec3cbb6bed56f3edb8221cdd4

Authored by Aresn
1 parent 987ca8cf

update Backtop

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/back-top/back-top.vue
... ... @@ -67,7 +67,7 @@
67 67 this.backTop = window.pageYOffset >= this.height;
68 68 },
69 69 back () {
70   - var sTop = document.documentElement.scrollTop||document.body.scrollTop;
  70 + const sTop = document.documentElement.scrollTop || document.body.scrollTop;
71 71 scrollTop(window, sTop, 0, this.duration);
72 72 this.$emit('on-click');
73 73 }
... ...