lsc 2 년 전
부모
커밋
8a046abe51
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/components/pages/addCourse.vue

+ 3 - 0
src/components/pages/addCourse.vue

@@ -4493,6 +4493,9 @@ export default {
               _unitJson[i].chapterInfo[0].chapterid !=
                 unitJson[i].chapterInfo[0].chapterid
             ) {
+              if(i == _unitJson.length - 1){
+                this.unitIndex++
+              }
               _unitJson.splice(i, 0, unitJson[i]);
             } else if (i > _unitJson.length - 1) {
               _unitJson.push(unitJson[i]);