diff --git a/src/views/baseinfo/TaskMail/TenantAuditStepModal.vue b/src/views/baseinfo/TaskMail/TenantAuditStepModal.vue index 1924dfa0..57647e9d 100644 --- a/src/views/baseinfo/TaskMail/TenantAuditStepModal.vue +++ b/src/views/baseinfo/TaskMail/TenantAuditStepModal.vue @@ -270,18 +270,20 @@ sortConditions: [], }, }) - arrRes.data.forEach((item) => { - values.attachments.forEach((e) => { - if (item.id == e) { - attachments.push({ - taskMailId: values.id, - templateId: item.id, - fileName: values[item.id] ? values[item.id] : item.templateName, - fileType: values[`${item.id}-fileType`], - }) - } + if (values.attachments) { + arrRes.data.forEach((item) => { + values.attachments.forEach((e) => { + if (item.id == e) { + attachments.push({ + taskMailId: values.id, + templateId: item.id, + fileName: values[item.id] ? values[item.id] : item.templateName, + fileType: values[`${item.id}-fileType`], + }) + } + }) }) - }) + } values.attachments = attachments values.receivers = []