SZX-1346课程加载失败,视频不能播放。

This commit is contained in:
xu
2025-12-22 17:00:23 +08:00
parent 932225ec49
commit b37980c30b

View File

@@ -1395,8 +1395,13 @@ export default {
} }
}, },
// ai播放器相关 - 视频处理 // ai播放器相关 - 视频处理
handleAIVideo(list = [], r) { handleAIVideo(listParam, r) {
console.log('触发了-----------list', list); // 先打印原始值,便于排查后端返回
console.log('触发了-----------原始 listParam', listParam);
// 防御性处理:后端可能返回 null 或其他非数组,这里统一转为数组,避免后续 forEach 报错
const list = Array.isArray(listParam) ? listParam : [];
// 再打印一次最终用于处理的 list
console.log('触发了-----------规范后 list', list);
this.SET_selectableLang(list); this.SET_selectableLang(list);
this.SET_courseInfo(this.courseInfo); this.SET_courseInfo(this.courseInfo);
if (this.courseInfo.aiSet && this.courseInfo.aiAbstract == 1 && this.courseInfo.summaryContent) { if (this.courseInfo.aiSet && this.courseInfo.aiAbstract == 1 && this.courseInfo.summaryContent) {