人生啊人生 1 kuukausi sitten
vanhempi
säilyke
613c9cd897
1 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. 5 4
      src/view/student/trainChapter/trainChapter.vue

+ 5 - 4
src/view/student/trainChapter/trainChapter.vue

@@ -50,11 +50,11 @@
 
                         <div class="menuListMain" v-for="(item, index) of state.chapterTree" :key="index" >
 
-                            <div :class="'menuListpParent ' + ( (index < state.currentStep || state.currentStep <= -1) ? 'menuListpParentYes' : '' ) "
+                            <div :class="'menuListpParent ' + ( (index < state.currentStep) ? 'menuListpParentYes' : '' ) "
                             @click="menuClickNew(item, index)" >
                                 <div class="menuListpParentLeft">
                                     <!-- <div class="logoTime" ></div> -->
-                                    <div :class="'' + ( (index < state.currentStep || state.currentStep <= -1) ? 'logoMenu' : 'logoNo' )" ></div>
+                                    <div :class="'' + ( (index < state.currentStep) ? 'logoMenu' : 'logoNo' )" ></div>
                                 </div>
                                 <div class="menuListpParentCenter">{{ item.name }} {{ item.name }} {{ item.name }}</div>
                                 <div class="menuListpParentRight" v-if="item.children != null && item.children != undefined && item.children.length > 0" >
@@ -62,18 +62,19 @@
                                 </div>
                             </div>
 
-                            <div :class="'menuListpChildren ' + ( (index < state.currentStep || state.currentStep <= -1) ? 'menuListpChildrenYes' : '' ) "
+                            <div :class="'menuListpChildren ' + ( (index < state.currentStep) ? 'menuListpChildrenYes' : '' ) "
                             @click="menuClickNew(item_1, index, item_1.id)"
                             v-if="item.children?.length > 0" v-for="(item_1, index_1) of item.children" :key="index_1" >
                                 <div class="menuListpChildrenKong" ></div>
                                 <div class="menuListpChildrenLeft" >
                                     <!-- <div class="logoTime" ></div> -->
-                                    <div :class="'' + ( (index < state.currentStep || state.currentStep <= -1) ? 'logoMenu' : 'logoNo' )" ></div>
+                                    <div :class="'' + ( (index < state.currentStep) ? 'logoMenu' : 'logoNo' )" ></div>
                                 </div>
                                 <div class="menuListpChildrenRight">
                                     {{ item_1.name }} {{ item_1.name }}
                                 </div>
                             </div>
+                            
                         </div>
 
                     </div>