lex před 1 rokem
rodič
revize
735b4cd6f4
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  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();