于添 4 bulan lalu
induk
melakukan
2de53cdc13
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      src/views/resourceDetails/components/VideoDetails.vue

+ 3 - 3
src/views/resourceDetails/components/VideoDetails.vue

@@ -24,7 +24,7 @@
 					>
 						<!-- <img :src="imgs + itemData.coverImagePath" style="width: 100%; height: 100%" /> -->
 						<!-- <img :v-lazy="imagess" style="width: 100%; height: 100%" /> -->
-						<a-image width="850px" height="350px" :src="resSrc" :preview="true"/>
+						<a-image width="850px" height="350px" :src="fileSrc(resSrc)" :preview="true"/>
 						<!-- <image :src="resSrc" style="object-fit: cover" /> -->
 					</div>
 					<!-- "wmv","avi","flv","mpeg","mpg","rmvb","mov","mkv" -->
@@ -32,7 +32,7 @@
 						v-else-if="['mkv', 'mp4', 'wmv', 'avi', 'flv', 'mpeg', 'mpg', 'rmvb', 'mov'].includes(videoFormat)"
 						style="width: 850px; height: 350px"
 					>
-						<video :src="resSrc" controls style="width: 100%; height: 100%"/>
+						<video :src="fileSrc(resSrc)" controls style="width: 100%; height: 100%"/>
 					</div>
 					<!-- "doc","docx","ppt","pptx","xls","xlsx" -->
 					<div
@@ -40,7 +40,7 @@
 						style="width: 850px; height: 350px"
 					>
 						<!-- <PDF :src="resSrc" :width="850" :height="350" /> -->
-						<FilePreviewer :fileUrl="resSrc" :fileName="resName" :fileType="fileType"/>
+						<FilePreviewer :fileUrl="fileSrc(resSrc)" :fileName="resName" :fileType="fileType"/>
 						<!-- <a-image width="200px" height="220px" :src="pdfRes" :preview="false" @click="handleDownload(resSrc)" /> -->
 						<!-- <a-button type="primary" @click="handleDownload(resSrc)">去预览</a-button> -->
 					</div>