Ver Fonte

Update index.tsx

lex há 1 ano atrás
pai
commit
735b4cd6f4
1 ficheiros alterados com 2 adições e 3 exclusões
  1. 2 3
      src/views/coursewarePlay/index.tsx

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

@@ -181,9 +181,8 @@ export default defineComponent({
         if (browserInfo.isApp && ['VIDEO', 'IMG'].includes(material.typeCode)) {
           const localData = await getCacheFilePath(material);
           if (localData?.content?.localPath) {
-            material.url = material.content + '?t=' + +new Date();
-            material.content =
-              localData.content.localPath + '?t=' + +new Date();
+            material.url = material.content;
+            material.content = localData.content.localPath;
           } else {
             material.url = material.content + '?t=' + +new Date();
             material.content = material.content + '?t=' + +new Date();