update 预览
This commit is contained in:
@@ -294,7 +294,9 @@ export default {
|
||||
* @param 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')
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user