skyblued před 2 roky
rodič
revize
b8a7093deb
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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 === '') {