Browse Source

feat(pptEasyClass): 根据类型处理并设置tcid值

当tType为2时,通过处理courseDetail.juri和cid拆分后的数组,获取第一个元素设置为tcid,完善对应场景下的课程ID赋值逻辑
lsc 1 week ago
parent
commit
54253b4273
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/components/pptEasyClass/index.vue

+ 4 - 0
src/components/pptEasyClass/index.vue

@@ -733,6 +733,10 @@ export default {
           })
           if(this.tType == '2'){
             this.cid = this.$route.query.cid || ''
+            this.tcid = this.arrayToArray(
+              this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
+              this.cid ? this.cid.split(",") : []
+            )[0] || "";
           }else {
             this.tcid = this.arrayToArray(
               this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],