|
@@ -23,7 +23,7 @@
|
|
|
课程小节
|
|
课程小节
|
|
|
</h3>
|
|
</h3>
|
|
|
<el-menu
|
|
<el-menu
|
|
|
- default-active="1-1"
|
|
|
|
|
|
|
+ :default-active="activeMenuIndex"
|
|
|
@open="handleOpen"
|
|
@open="handleOpen"
|
|
|
@close="handleClose"
|
|
@close="handleClose"
|
|
|
@select="handleSelect"
|
|
@select="handleSelect"
|
|
@@ -278,6 +278,8 @@ const toggleDrawer = () => {
|
|
|
drawerVisible.value = !drawerVisible.value
|
|
drawerVisible.value = !drawerVisible.value
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+const activeMenuIndex = ref('1-1')
|
|
|
|
|
+
|
|
|
// 返回上一页
|
|
// 返回上一页
|
|
|
const goBack = () => {
|
|
const goBack = () => {
|
|
|
router.go(-1)
|
|
router.go(-1)
|
|
@@ -448,11 +450,14 @@ const playNextVideo = () => {
|
|
|
once: true
|
|
once: true
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+ // 更新侧边栏选中状态,这里需要根据实际逻辑调整index值
|
|
|
|
|
+ activeMenuIndex.value = nextIndex
|
|
|
}
|
|
}
|
|
|
// 重置
|
|
// 重置
|
|
|
pausedIndices = ref([])
|
|
pausedIndices = ref([])
|
|
|
userMessage = ref('')
|
|
userMessage = ref('')
|
|
|
messageHistory = ref([])
|
|
messageHistory = ref([])
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 切换视频
|
|
// 切换视频
|
|
@@ -471,7 +476,10 @@ const playPreviousVideo = () => {
|
|
|
once: true
|
|
once: true
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+ // 更新侧边栏选中状态,这里需要根据实际逻辑调整index值
|
|
|
|
|
+ activeMenuIndex.value = nextIndex
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 尝试播放视频,处理浏览器自动播放限制
|
|
// 尝试播放视频,处理浏览器自动播放限制
|
|
@@ -556,6 +564,7 @@ const currentQuestion = ref({ title: '', options: [] })
|
|
|
// 用户选择的选项
|
|
// 用户选择的选项
|
|
|
const selectedOption = ref(null)
|
|
const selectedOption = ref(null)
|
|
|
|
|
|
|
|
|
|
+
|
|
|
// AI对话弹出框显示状态
|
|
// AI对话弹出框显示状态
|
|
|
let showAIDialog = ref(false)
|
|
let showAIDialog = ref(false)
|
|
|
// 用户输入的消息
|
|
// 用户输入的消息
|