From fa52600a03a3dcd2822249b22c508fc9578cf838 Mon Sep 17 00:00:00 2001
From: ssc <273702440@qq.com>
Date: Mon, 14 Feb 2022 11:21:08 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=A1=E6=A0=B8=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E9=99=84=E4=BB=B6=E6=97=B6=E5=AF=BC=E8=87=B4=E6=B5=81=E7=A8=8B?=
=?UTF-8?q?=E5=9B=BE=E6=98=BE=E7=A4=BA=E8=AF=84=E8=AE=BA=E9=94=99=E8=AF=AF?=
=?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/plugin/workflow/mixins/ex-form.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/plugin/workflow/mixins/ex-form.js b/src/views/plugin/workflow/mixins/ex-form.js
index 753063e..cb7accd 100644
--- a/src/views/plugin/workflow/mixins/ex-form.js
+++ b/src/views/plugin/workflow/mixins/ex-form.js
@@ -385,7 +385,7 @@ export default {
if (comments && comments.length > 0) {
let comment
- let { type, fullMessage } = comments[0]
+ let { type, fullMessage } = comments.find(c => c.action == 'AddComment') || {}
if (type == 'assigneeComment') {
comment = '变更审核人:' + fullMessage
@@ -427,7 +427,7 @@ export default {
comment = '审批:' + fullMessage
ff.class = 'nodeSuccess'
}
- tooltip += `${comment}`
+ if (comment) tooltip += `${comment}`
}
ff.tooltip = tooltip
}