perf: 邮件附件: 支持多选

2.0/email-builder
Lei OT 11 months ago
parent c5ae7066f6
commit b58162ee85

@ -202,7 +202,7 @@ const EmailEditorPopup = ({ open, setOpen, fromEmail, fromUser, conversationid,
const uploadProps = {
// action: 'https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload',
// onChange: handleChange,
// multiple: true,
multiple: true,
fileList,
beforeUpload: (file) => {
setFileList(prev => [...prev, file]);
@ -272,7 +272,7 @@ const EmailEditorPopup = ({ open, setOpen, fromEmail, fromUser, conversationid,
body.externalID = stickToCid;
body.actionID = `${stickToCid}.${msgObj.id}`;
try {
const result = await postSendEmail(body); // todo: id,
const result = await postSendEmail(body);
setSendLoading(false);
const mailSavedId = result.id || '';
msgObj.id = mailSavedId
@ -283,9 +283,9 @@ const EmailEditorPopup = ({ open, setOpen, fromEmail, fromUser, conversationid,
} catch (error) {
notification.error({
message: "邮件保存失败",
// description: error,
description: error.message,
placement: "top",
// duration: 60,
duration: 3,
});
}

Loading…
Cancel
Save