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

This commit is contained in:
baoyu
2024-04-22 15:10:48 +08:00
parent 565c28f7e7
commit f2fd24dde2
-3
View File
@@ -56,9 +56,6 @@ async function preview (attId, type) {
}
} 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)
}