Przeglądaj źródła

去除无用代码

谢杰标 2 lat temu
rodzic
commit
7058a1f76a
1 zmienionych plików z 5 dodań i 6 usunięć
  1. 5 6
      src/components/courseTree/CourseTree.vue

+ 5 - 6
src/components/courseTree/CourseTree.vue

@@ -720,11 +720,6 @@ export default {
         sectionId == sectionId1
       );
     },
-    backList(courseId, projectId) {
-      return projectId
-        ? this.treeList
-        : this.treeList.find((e) => e.courseId == courseId).list;
-    },
     // 自动播放下一个视频
     async playNextVideo(sectionItem = this.sectionItem) {
       let { menuId, parent, courseId, projectId } = sectionItem;
@@ -773,7 +768,11 @@ export default {
       return this.backNextItem(nextItem, nextItem.menuType, isNext);
     },
     async getResource(section, type, courseIndex) {
-      if (section.type != 2 && this.isActive(section)) {
+      if (
+        section.type != 2 &&
+        this.isActive(section) &&
+        section.sectionType != 3
+      ) {
         return;
       }
       if (!(await this.orderTopTobottom(section, type, courseIndex))) {