lsc 2 лет назад
Родитель
Сommit
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]);