修改UAT提出的优化点

This commit is contained in:
范强强
2023-07-05 11:54:00 +08:00
parent 372c22b836
commit c0b33d0f6f
8 changed files with 64 additions and 20 deletions
+2 -2
View File
@@ -10,10 +10,10 @@ export function kkFileView(fileName, fileId) {
let fileSuffix = fileName.substring(index1, index2)
if (fileSuffix == '.docx' || fileSuffix == '.doc' || fileSuffix == '.pdf' || fileSuffix == '.xlsx' || fileSuffix == '.xls') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(downLoadFileUrl + '/' + fileId + fileSuffix)
window.open(url)
window.open(url,'_self')
} else if (fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(downLoadImgUrl + '/' + fileId + fileSuffix)
window.open(url)
window.open(url,'_self')
} else {
Toast('当前格式不支持预览')
}