lsc 2 éve
szülő
commit
2acaa90861
1 módosított fájl, 14 hozzáadás és 14 törlés
  1. 14 14
      src/components/pages/addCourse.vue

+ 14 - 14
src/components/pages/addCourse.vue

@@ -4511,20 +4511,20 @@ export default {
             if (chapindex < _unitIndex) {
               this.isDelete = 2;
               this.unitIndex--;
-            }
-          } else if (
-            _unitJson2[this.unitIndex].chapterInfo[0].chapterid !=
-            _unitJson[this.unitIndex].chapterInfo[0].chapterid
-          ) {
-            this.isDelete = 2;
-            for (let n = 0; n < _unitJson.length; n++) {
-              if (
-                _unitJson2[this.unitIndex].chapterInfo[0].chapterid ==
-                _unitJson[n].chapterInfo[0].chapterid
-              ) {
-                this.unitIndex = n;
-                _unitJson[n] = _unitJson2[this.unitIndex];
-                break;
+            } else if (
+              _unitJson2[this.unitIndex].chapterInfo[0].chapterid !=
+              _unitJson[this.unitIndex].chapterInfo[0].chapterid
+            ) {
+              this.isDelete = 2;
+              for (let n = 0; n < _unitJson.length; n++) {
+                if (
+                  _unitJson2[this.unitIndex].chapterInfo[0].chapterid ==
+                  _unitJson[n].chapterInfo[0].chapterid
+                ) {
+                  this.unitIndex = n;
+                  _unitJson[n] = _unitJson2[this.unitIndex];
+                  break;
+                }
               }
             }
           } else {