lsc 1 year ago
parent
commit
c12b076f9f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/components/courseDetail.vue

+ 2 - 0
src/components/courseDetail.vue

@@ -1491,6 +1491,7 @@ export default {
       console.log(this.courseTypeJson.length);
       this.aStudentName = res.data[2];
       this.chapInfo = JSON.parse(this.courseDetail.chapters);
+      this.rw = 0
       for (var z = 0; z < this.chapInfo.length; z++) {
         this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
       }
@@ -1599,6 +1600,7 @@ export default {
           console.log(this.courseTypeJson.length);
           this.aStudentName = res.data[2];
           this.chapInfo = JSON.parse(this.courseDetail.chapters);
+          this.rw = 0
           for (var z = 0; z < this.chapInfo.length; z++) {
             this.rw += this.chapInfo[z].chapterInfo[0].taskJson.length;
           }