liyongli 1 year ago
parent
commit
1b1992c2fc
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/view/schedule/index.vue

+ 2 - 4
src/view/schedule/index.vue

@@ -109,7 +109,7 @@
   </div>
 </template>
 <script setup>
-import { ref, nextTick } from 'vue';
+import { ref } from 'vue';
 import pageFirst from './page1.vue';
 import pageThird from './page3.vue';
 import page4 from './page4.vue';
@@ -189,9 +189,7 @@ const touchend = e => {
   if (dn > len) return;
   isUp.value = n === 1;
   page.value = dn;
-  nextTick(() => {
-    main.value.scrollTop = 0;
-  });
+  main.value.scrollTop = 0;
 };
 
 const touchmove = e => {