lsc hace 2 años
padre
commit
41013eb389
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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) {