update 预览

This commit is contained in:
赵霄
2024-01-24 10:59:55 +08:00
parent 3e38a7ae18
commit c1eb1ea7a1
+3 -1
View File
@@ -294,7 +294,9 @@ export default {
* @param file * @param file
*/ */
viewFileClick (file) { viewFileClick (file) {
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(this.documentUrl + file.filePath + '&fullfilename=' + this.$route.query.fileName))}` const filePaths = file.filePath.split('/')
const fileName = filePaths[filePaths.length - 1]
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(this.documentUrl + file.filePath + '&fullfilename=' + fileName))}`
window.open(url, '_blank') window.open(url, '_blank')
}, },
/** /**