Browse Source

Merge branch 'iteration-20250108-fix' into dev

lex-xin 1 month ago
parent
commit
506005c7ed
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/views/courseware-play/index.tsx

+ 5 - 2
src/views/courseware-play/index.tsx

@@ -189,7 +189,7 @@ export default defineComponent({
               ? n.audioPlayTypes.split(',')
               : [];
             n.url =
-              n.coverImg || n.type === 'SONG'
+              n.type === 'SONG'
                 ? 'https://oss.dayaedu.com/ktqy/1698420034679a22d3f7a.png'
                 : n.type === 'PPT'
                 ? 'https://oss.dayaedu.com/ktqy/12/1701931810284.png'
@@ -201,6 +201,7 @@ export default defineComponent({
           });
         }
       });
+      console.log(courseList, 'courseList');
       data.zsdId = knowledgeList?.[0].id;
       activeData.lessonCoursewareDetailId =
         currentCourse.lessonCoursewareDetailId;
@@ -332,7 +333,9 @@ export default defineComponent({
             });
           }
           // 返回数据进行排序
-          data.formatCourseList = formatList.sort((a: any, b: any) => b.year - a.year);
+          data.formatCourseList = formatList.sort(
+            (a: any, b: any) => b.year - a.year
+          );
         }
       } catch (e) {
         //