瀏覽代碼

Revert "fix"

skyblued 2 年之前
父節點
當前提交
b8a7093deb
共有 1 個文件被更改,包括 2 次插入2 次删除
  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 === '') {