From f1643def26a9a937b4cf65ccf18aef33e93b751e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Thu, 21 Nov 2024 18:02:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E4=BB=B6=E6=A8=A1=E6=9D=BF=20?= =?UTF-8?q?=E6=97=A0=E9=99=84=E4=BB=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TaskMail/TenantAuditStepModal.vue | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) 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 = []