lsc 1 week ago
parent
commit
2acf0ad894
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/pages/pptEasy/addCourse3.vue

+ 2 - 1
src/components/pages/pptEasy/addCourse3.vue

@@ -3785,6 +3785,7 @@ export default {
       this.courseUrl = url + "/pbl-student-table/dist/#/courseDetail?userid=" + this.userid + "&oid=" + this.oid + "&org=" + this.org + "&courseId=" + this.courseId + "&tType=1&cid=&screenType=2&noLogin=3"
     },
     async saveBeiKe(){
+      if(!this.cid) return;
       let userArray = ['6fbc6471-1d48-11ed-8c78-005056b86db5','333d0dfc-1cd9-11ef-bee5-005056b86db5','6fbce5ef-1d48-11ed-8c78-005056b86db5','66feffcc-ad35-11ed-b13d-005056b86db5']
       let endTime = await this.getServerTime()
       let courseTime = Math.max(1, Math.ceil((new Date(endTime) - new Date(this.startTime)) / (1000 * 60)))
@@ -3803,7 +3804,7 @@ export default {
       let params = [
         {
           uid: this.userid,
-          cid: this.id,
+          cid: this.cid,
           type: "5",
           time: courseTime * 60,
         },