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

+ 2 - 2
src/components/pages/addCourse.vue

@@ -4507,7 +4507,7 @@ export default {
             // } else
           }
 
-          if (_chapAarry.length) {
+          if (_chapAarry.length && index != 2) {
             if (chapindex < _unitIndex) {
               this.isDelete = 2;
               this.unitIndex--;
@@ -4527,7 +4527,7 @@ export default {
                 }
               }
             }
-          } else {
+          } else if(index != 2) {
             _unitJson[this.unitIndex] = _unitJson2[this.unitIndex];
           }
           if (index == 1) {