lsc 2 年之前
父节点
当前提交
889b94c893
共有 1 个文件被更改,包括 3 次插入1 次删除
  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;