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

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

@@ -183,6 +183,9 @@ export default defineComponent({
           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();
           }
         }
 
@@ -293,7 +296,7 @@ export default defineComponent({
                   index++;
                   return {
                     ...item,
-                    content: item.content + '?t=' + item.id,
+                    content: item.content,
                     knowledgePointId: [item.knowledgePointId],
                     materialId: item.id,
                     id: index + ''
@@ -306,7 +309,7 @@ export default defineComponent({
                     index++;
                     return {
                       ...item,
-                      content: item.content + '?t=' + item.id,
+                      content: item.content,
                       knowledgePointId: [n.id, item.knowledgePointId],
                       materialId: item.id,
                       id: index + ''