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]);