lsc il y a 2 ans
Parent
commit
8a046abe51
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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]);