lsc 2 anos atrás
pai
commit
f7afabdc6f
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/components/pages/addCourse.vue

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

@@ -4474,7 +4474,8 @@ export default {
             console.log(_chapAarry);
             console.log(_chapAarry);
             for (let d = 0; d < _unitJson2.length; d++) {
             for (let d = 0; d < _unitJson2.length; d++) {
               if (
               if (
-                _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
+                _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1 
+                && _unitIndex == d
               ) {
               ) {
                 index = 2;
                 index = 2;
                 chapindex = d;
                 chapindex = d;