diff --git a/src/views/newMap/displayNew/LeftSlider.vue b/src/views/newMap/displayNew/LeftSlider.vue index c82d750fb..325dd9394 100644 --- a/src/views/newMap/displayNew/LeftSlider.vue +++ b/src/views/newMap/displayNew/LeftSlider.vue @@ -61,7 +61,6 @@ export default { getPublishLessonTree(this.$route.query.lessonId).then(response => { if (response.data.tree && response.data.tree.length > 0) { this.treeList = response.data.tree; - console.log(this.treeList); } }).catch(error => { this.$message.error(this.$t('tip.failedCourse') + ':' + error.message); diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue index e67308e1e..ce0651584 100644 --- a/src/views/newMap/displayNew/index.vue +++ b/src/views/newMap/displayNew/index.vue @@ -40,7 +40,7 @@ - + @@ -165,6 +165,9 @@ export default { isLesson() { return this.mode === 'teach' || this.mode === 'manage'; }, + isShowLeftSlider() { + return (this.mode === 'teach' || this.mode === 'manage') && (this.$route.query.lessonId != '0'); + }, isExam() { return this.mode === 'exam'; },