lsc 2 年之前
父节点
当前提交
fab716f490
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/components/pages/addCourse.vue

+ 1 - 3
src/components/pages/addCourse.vue

@@ -2986,9 +2986,7 @@ export default {
     },
     unitSet(i) {
       this.unitIndex = i;
-      setTimeout(() => {
-        this.$refs.rightboxR.scrollTop = 0;
-      }, 0);
+      this.$refs.rightboxR.scrollTop = 0;
     },
     time() {
       if (!this.now) {