Browse Source

修改图片显示

lex 1 year ago
parent
commit
42a2c00f38
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/courseware-play/index.tsx

+ 1 - 1
src/views/courseware-play/index.tsx

@@ -283,7 +283,7 @@ export default defineComponent({
                 ? resource.materialId
                 ? resource.materialId
                 : resource.bizId;
                 : resource.bizId;
             resource.url =
             resource.url =
-              resource.type === 'SONG'
+              resource.coverImg || resource.type === 'SONG'
                 ? 'https://oss.dayaedu.com/ktqy/1698420034679a22d3f7a.png'
                 ? 'https://oss.dayaedu.com/ktqy/1698420034679a22d3f7a.png'
                 : resource.type === 'PPT'
                 : resource.type === 'PPT'
                 ? 'https://oss.dayaedu.com/ktqy/12/1701931810284.png'
                 ? 'https://oss.dayaedu.com/ktqy/12/1701931810284.png'