fix kkFile预览提出公共方法,加水印

This commit is contained in:
赵霄
2024-01-02 14:45:34 +08:00
parent f193b3f528
commit 80cac85d9f
+1 -1
View File
@@ -13,7 +13,7 @@ export const kkFilePreview = (fileUrl) => {
// 水印内容
const watermarkTxt = `${userInfo.username} ${userInfo.realname}`
// 客户环境预览需要加的加密参数
const watermarkSign = md5(watermarkTxt, 'cnhtc')
const watermarkSign = md5(watermarkTxt + 'cnhtc')
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(fileUrl))}&watermarkTxt=${encodeURIComponent(watermarkTxt)}&watermarkSign=${watermarkSign}`
window.open(url)
}