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 }