dusenyao пре 1 година
родитељ
комит
7a13fb93a3
1 измењених фајлова са 1 додато и 8 уклоњено
  1. 1 8
      src/views/book/courseware/preview/index.vue

+ 1 - 8
src/views/book/courseware/preview/index.vue

@@ -80,7 +80,7 @@ export default {
       this.setCurPosition(this.chapter_id);
     });
     this.getCoursewareList_Chapter(this.chapter_id);
-    this.GetCoursewareComponentContent_View();
+    this.getCoursewareComponentContent_View();
   },
   methods: {
     // 获取课件数据
@@ -95,13 +95,6 @@ export default {
     goBack() {
       this.$router.push(`/chapter?chapter_id=${this.chapter_id}&book_id=${this.book_id}`);
     },
-    getNodeName(index) {
-      let node = this.nodes;
-      for (let i = 0; i <= index; i++) {
-        node = i === 0 ? node[this.curPosition[i]] : node.nodes[this.curPosition[i]];
-      }
-      return node?.name;
-    },
     /**
      * 根据节点id查找节点在nodes中的位置
      * @param {array} nodes 节点数组