Browse Source

Revert "fix"

skyblued 2 năm trước cách đây
mục cha
commit
b8a7093deb
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/views/coursewarePlay/index.tsx

+ 2 - 2
src/views/coursewarePlay/index.tsx

@@ -124,12 +124,12 @@ export default defineComponent({
         const item = data.knowledgePointList[i]
         for (let j = 0; j < item.materialList.length; j++) {
           const material = item.materialList[j]
-          if (browserInfo.isApp && material.type === 'VIDEO'){
+          if (browserInfo.isApp && ['VIDEO', 'IMG'].includes(material.type)){
             const localData = await getCacheFilePath(material)
             if (localData?.content?.localPath){
               material.url = material.content
               material.content = localData.content.localPath
-              console.log("🚀 ~ material", material)
+              // console.log("🚀 ~ material", material)
             }
           }
           if (popupData.itemActive === '') {