From 45e117bce41d821676b7fc2bf4c2ac59fe08c572 Mon Sep 17 00:00:00 2001 From: fengachen <373943794@qq.com> Date: Tue, 9 Nov 2021 15:46:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=96=87=E4=BB=B6=E9=A2=84?= =?UTF-8?q?=E8=A7=88url=E7=9A=84=20base64=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/jero/PreviewFile.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/jero/PreviewFile.vue b/src/components/jero/PreviewFile.vue index de2d858..1d931d0 100644 --- a/src/components/jero/PreviewFile.vue +++ b/src/components/jero/PreviewFile.vue @@ -20,7 +20,7 @@ import {getFileInfo} from '@/api/api' import {downloadFile} from '@api/manage' import JEllipsis from '@comp/jero/JEllipsis' // eslint-disable-next-line -const Base64 = require('js-base64').Base64 +// const Base64 = require('js-base64').Base64 export default { @@ -105,7 +105,7 @@ export default { handlePreview(file) { if (file && file.id) { const fileFullUrl = `${window._CONFIG['domianWebSocketURL']}/sys/common/download/${file.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${file.name}` - let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(Base64.encode(fileFullUrl))}` + let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}` // let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}` window.open(url) }