|
@@ -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 节点数组
|