lsc 2 år sedan
förälder
incheckning
41013eb389
1 ändrade filer med 2 tillägg och 2 borttagningar
  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) {