shaogen1995 3 years ago
parent
commit
872c6ebe53
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/Home.vue

+ 2 - 2
src/views/Home.vue

@@ -79,7 +79,7 @@ export default {
   //监控data中的数据变化
   watch: {
     topImgInd() {
-      window.scrollTo({ top: 0, behavior: "smooth" });
+      window.scrollTo({ top: 0});
     },
   },
   //方法集合
@@ -88,7 +88,7 @@ export default {
       this.myMenucShow = false;
       this.topImgInd = id;
       if (id === this.topImgInd)
-        window.scrollTo({ top: 0, behavior: "smooth" });
+        window.scrollTo({ top: 0});
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)