[update] 修改bug81710
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user