[update] 修改bug81710

This commit is contained in:
lideqin
2024-02-04 09:48:45 +08:00
parent 5f09fad72d
commit 3a7ee72175
@@ -182,6 +182,10 @@ export default {
},
// 在线编辑的查看
onlineEditView () {
if (!this.onEditFile) {
this.$message.warning(this.$t('workCenter.enStandardRevision.noStandardTextLook'))
return
}
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
if (res.success) {
const file = res.result
@@ -189,6 +193,8 @@ export default {
const fileName = filePaths[filePaths.length - 1]
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(this.documentUrl + file.editFilePath + '&fullfilename=' + fileName))}`
window.open(url, '_blank')
} else {
this.$message.warning(res.message)
}
})
}