lex 1 år sedan
förälder
incheckning
4fdfd33dfd
1 ändrade filer med 5 tillägg och 2 borttagningar
  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) {
           if (localData?.content?.localPath) {
             material.url = material.content;
             material.url = material.content;
             material.content = localData.content.localPath;
             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++;
                   index++;
                   return {
                   return {
                     ...item,
                     ...item,
-                    content: item.content + '?t=' + item.id,
+                    content: item.content,
                     knowledgePointId: [item.knowledgePointId],
                     knowledgePointId: [item.knowledgePointId],
                     materialId: item.id,
                     materialId: item.id,
                     id: index + ''
                     id: index + ''
@@ -306,7 +309,7 @@ export default defineComponent({
                     index++;
                     index++;
                     return {
                     return {
                       ...item,
                       ...item,
-                      content: item.content + '?t=' + item.id,
+                      content: item.content,
                       knowledgePointId: [n.id, item.knowledgePointId],
                       knowledgePointId: [n.id, item.knowledgePointId],
                       materialId: item.id,
                       materialId: item.id,
                       id: index + ''
                       id: index + ''