|
@@ -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 === '') {
|