소스 검색

添加课程打开次数

11wqe1 2 달 전
부모
커밋
a4a142afad
1개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. 14 0
      src/components/courseDetail.vue

+ 14 - 0
src/components/courseDetail.vue

@@ -1437,6 +1437,20 @@ export default {
           );
         }
       }
+
+      let params = [
+        {
+          courseId: this.id,
+        },
+      ];
+      this.ajax
+        .post(this.$store.state.api + "addOpenCoursenum", params)
+        .then((res) => {})
+        .catch((err) => {
+          console.error(err);
+        });
+
+
     },
     goToStudyOrDia(l) {
       if (l.length > 0) {