lex 1 rok pred
rodič
commit
744a48a3a2
1 zmenil súbory, kde vykonal 2 pridanie a 5 odobranie
  1. 2 5
      src/views/coursewarePlay/index.tsx

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

@@ -176,11 +176,8 @@ export default defineComponent({
         if (browserInfo.isApp && ['VIDEO', 'IMG'].includes(material.type)) {
           const localData = await getCacheFilePath(material)
           if (localData?.content?.localPath) {
-            material.url = material.content + '?t=' + +new Date()
-            material.content = localData.content.localPath + '?t=' + +new Date()
-          } else {
-            material.url = material.content + '?t=' + +new Date()
-            material.content = material.content + '?t=' + +new Date()
+            material.url = material.content
+            material.content = localData.content.localPath
           }
         }
         const videoData = data.lookVideoDataList.find(