瀏覽代碼

临时去掉缓存

lex-xin 3 月之前
父節點
當前提交
5726572a11
共有 1 個文件被更改,包括 10 次插入10 次删除
  1. 10 10
      src/tenant/music/coursewarePlay/index.tsx

+ 10 - 10
src/tenant/music/coursewarePlay/index.tsx

@@ -207,17 +207,17 @@ export default defineComponent({
       for (let j = 0; j < materialList.length; j++) {
         const material = materialList[j]
         //请求本地缓存
-        if (browserInfo.isApp && ['VIDEO', 'IMG'].includes(material.typeCode)) {
-          const localData: any = await getCacheFilePath(material)
+        // if (browserInfo.isApp && ['VIDEO', 'IMG'].includes(material.typeCode)) {
+        //   const localData: any = await getCacheFilePath(material)
 
-          if (localData?.content?.localPath) {
-            material.url = material.content
-            material.content = localData.content.localPath
-          } else {
-            material.url = material.content + '?t=' + +new Date()
-            material.content = material.content + '?t=' + +new Date()
-          }
-        }
+        //   if (localData?.content?.localPath) {
+        //     material.url = material.content
+        //     material.content = localData.content.localPath
+        //   } else {
+        //     material.url = material.content + '?t=' + +new Date()
+        //     material.content = material.content + '?t=' + +new Date()
+        //   }
+        // }
 
         material.iframeRef = null
         material.videoEle = null