diff --git a/src/components/Common/OfficePreview/index.js b/src/components/Common/OfficePreview/index.js index caf428a..8eeb747 100644 --- a/src/components/Common/OfficePreview/index.js +++ b/src/components/Common/OfficePreview/index.js @@ -15,7 +15,7 @@ const OfficePreview = props => { .pop() .split("_") .pop(); - const fileUrl = `${commonConfig.file_host}file/download?savePathStr=${encodeURIComponent(officeFileUrl)}&sModelsId=100&token=${app.token}`; + const fileUrl = `${commonConfig.file_host}file/downloadView?savePathStr=${encodeURIComponent(officeFileUrl)}&sModelsId=100&token=${app.token}`; const fileType = title .split(".") .pop() @@ -40,7 +40,11 @@ const OfficePreview = props => { }} >
- {fileType === "PDF" && } + {fileType === 'PDF' && ( +
+ +
+ )} {['MP4', 'WEBM', 'OGG'].includes(fileType) && (