文件预览加解密默认修改

This commit is contained in:
haozq 2025-02-11 11:16:41 +08:00
parent 59a9cd2f90
commit 9ce9c39cbd
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
<script>
import { filePreview, lookFaceFile, lookFile, lookMioIoFile } from '@/utils/bonus' // Assuming Base64 is saved as a separate module
import useBase64 from '@/api/base64Utils'
import { encryptCBC } from '@/utils/aescbc'
import { encryptCBC, encryptCBCTime } from '@/utils/aescbc'
import { downloadFile } from '@/api/tool/select'
export default {
@ -78,7 +78,7 @@ export default {
let fileUploadPath = filePath
let filePreviewPath
let time = encryptCBC(Math.floor(Date.now()).toString())
let time = encryptCBCTime(Math.floor(Date.now()).toString())
if (suffix.toLowerCase() === 'pdf') {
filePreviewPath = filePath.includes('http') ? filePath : `${this.lookFile}/${filePath}`
this.showDownloadButton = false