diff --git a/src/views/EditorPage.vue b/src/views/EditorPage.vue index 1d94ebc..71c72d4 100644 --- a/src/views/EditorPage.vue +++ b/src/views/EditorPage.vue @@ -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') }, /**