star7th 6 лет назад
Родитель
Сommit
22a288998c
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      web_src/src/components/common/BackToTop.vue

+ 2 - 2
web_src/src/components/common/BackToTop.vue

@@ -14,7 +14,7 @@ export default {
       status: false,
       status: false,
       scrollTop: 0,
       scrollTop: 0,
       timer: null,
       timer: null,
-      speed:0
+      speed:50
     }
     }
   },
   },
   mounted () {
   mounted () {
@@ -28,7 +28,7 @@ export default {
     gototop () {
     gototop () {
       let _t = this;
       let _t = this;
       _t.timer = setInterval(function(){
       _t.timer = setInterval(function(){
-        _t.scrollTop -= 100
+        _t.scrollTop -= 2000
         if (_t.scrollTop < 100) {
         if (_t.scrollTop < 100) {
           _t.scrollTop = 0;
           _t.scrollTop = 0;
           _t.status = false;
           _t.status = false;