修改 企业标准文件预览处理

This commit is contained in:
baoyu
2024-04-22 15:06:19 +08:00
parent 1b5e20362d
commit 565c28f7e7
+6 -1
View File
@@ -54,7 +54,12 @@ async function preview (attId, type) {
this.$message.error('文档未转换成功或本地读取不到该文档')
return
}
} else {
} else if (file.previewAttId) {
url = viewer + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + file.previewAttId)
} else if (!file.previewAttId) {
this.$message.error('文档未转换成功或本地读取不到该文档')
return
}else {
url = kkFileViewUrl + '/onlinePreview?url=' + encodeURIComponent(Base64.encode(file.downLoadUrl)) + '&watermarkTxt=' + encodeURIComponent(store.getters.userInfo.userName)
}
}