From 3a7ee7217558a53bfd160d40592940c831ee95fe Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Sun, 4 Feb 2024 09:48:45 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9bug81710?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../enterpriseStandardChange/modules/ApproveBaseInfo.vue | 6 ++++++ 1 file changed, 6 insertions(+) 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) } }) }