lsc 2 年之前
父節點
當前提交
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]);