lsc 2 years ago
parent
commit
889b94c893
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/components/pages/addCourse.vue

+ 3 - 1
src/components/pages/addCourse.vue

@@ -4499,7 +4499,7 @@ export default {
             }
             // if (i == _unitIndex) {
             //   continue;
-            // } else 
+            // } else
             // else if (i > this.unitJson.length - 1) {
             //   _unitJson.push(unitJson[i]);
             // }
@@ -4519,6 +4519,8 @@ export default {
                 break;
               }
             }
+          } else {
+            _unitJson2[this.unitIndex] = _unitJson[this.unitIndex];
           }
           if (index == 1) {
             this.unitJson = _unitJson;