|
|
|
@ -61,7 +61,7 @@ const encodeEmailInfo = (info) => {
|
|
|
|
|
*/
|
|
|
|
|
export const getEmailDetailAction = async (param) => {
|
|
|
|
|
const { result } = await fetchJSON(`${EMAIL_HOST}/getmail`, param);
|
|
|
|
|
return { info: encodeEmailInfo(result.MailInfo?.[0] || {}), content: result.MailContent || '', attachments: result?.AttachList || [] };
|
|
|
|
|
return { info: encodeEmailInfo(result.MailInfo?.[0] || {}), content: (result.MailContent || '').replace(/[\r\n]/g, '<br />'), attachments: result?.AttachList || [] };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|