lsc 1 年之前
父节点
当前提交
c12b076f9f
共有 1 个文件被更改,包括 2 次插入0 次删除
  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;
           }