lsc 2 years ago
parent
commit
837b2fede6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/studyStudent.vue

+ 2 - 1
src/components/studyStudent.vue

@@ -3987,6 +3987,7 @@ export default {
       window.parent.postMessage({ allScreen: this.screenType }, "*");
     },
     nextOrpreSteps(t) {
+      document.scrollingElement.scrollTop = 0;
       this.showType = 0;
       var b = this.chapInfoList.length - 1;
       if (t == 0) {
@@ -4079,6 +4080,7 @@ export default {
       this.$forceUpdate();
     },
     openTask(s, n, i) {
+      document.scrollingElement.scrollTop = 0;
       this.courseType = s;
       this.navId = i;
       this.taskCount = n;
@@ -4141,7 +4143,6 @@ export default {
         });
     },
     getCourseDetail() {
-      document.scrollingElement.scrollTop = 0;
       const loading = this.$loading.service({
         background: "rgba(255, 255, 255, 0.7)",
         target: document.querySelector(".student_table"),