From af5dd4efdcaf57319bb357aa6eb1d6f26ad07153 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 10 Jun 2025 10:39:15 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E9=82=AE=E7=AE=B1=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E6=93=8D=E4=BD=9C;=20perf:=20=E9=82=AE=E4=BB=B6=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E7=9A=84=E9=99=84=E4=BB=B6;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/actions/EmailActions.js | 2 +- src/views/orders/Follow.jsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/actions/EmailActions.js b/src/actions/EmailActions.js index 7ae5bef..34c4673 100644 --- a/src/actions/EmailActions.js +++ b/src/actions/EmailActions.js @@ -98,7 +98,7 @@ export const getEmailDetailAction = async (params) => { const { html, bodyContent, bodyText } = mailType === 'text/html' ? parseHTMLString(cleanContent, true) : { html: '', bodyContent: '', bodyText: '' }; - const attachments = (isEmpty(result?.AttachList) ? [] : result.AttachList).filter(ele => isEmpty(ele.ATI_ContentID)); + const attachments = (isEmpty(result?.AttachList) ? [] : result.AttachList).filter(ele => isEmpty(ele.ATI_ContentID) || !ele.ATI_Name.includes('ContentFile')); const ret = { info: { ...encodeEmailInfo(result.MailInfo?.[0] || {}), mailType }, diff --git a/src/views/orders/Follow.jsx b/src/views/orders/Follow.jsx index 32938b0..7b47ec1 100644 --- a/src/views/orders/Follow.jsx +++ b/src/views/orders/Follow.jsx @@ -86,6 +86,9 @@ function Follow() { if (VKey && !(!IsTrue && !COLI_SN)) { setMailboxActiveNode({...treeNode, ...node._raw, key: treeNode.key, OPI_SN: currentMailboxOPI}); setActiveEmailId(0); + } else { + const _expandTree = expandTree.includes(node.key) ? expandTree.filter(ele => ele !== node.key) : [...expandTree, ...selectedKeys] + setExpandTree(_expandTree) } }