Browse Source

Update index.tsx

lex 1 year ago
parent
commit
204cd358de
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/views/coursewarePlay/index.tsx

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

@@ -173,8 +173,11 @@ export default defineComponent({
         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
+            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()
           }
         }