diff --git a/src/views/workCenter/enterpriseStandardChange/modules/ApproveBaseInfo.vue b/src/views/workCenter/enterpriseStandardChange/modules/ApproveBaseInfo.vue index fbac42f5..43f89aa0 100644 --- a/src/views/workCenter/enterpriseStandardChange/modules/ApproveBaseInfo.vue +++ b/src/views/workCenter/enterpriseStandardChange/modules/ApproveBaseInfo.vue @@ -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) } }) }