From 0ca4a7a15acab60a8b8bbb4f4b11187e21ede99e Mon Sep 17 00:00:00 2001 From: Lei OT Date: Thu, 3 Jul 2025 15:39:18 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=AE=A2=E5=8D=95=E8=B7=9F=E8=B8=AA:?= =?UTF-8?q?=20=E6=9F=A5=E6=89=BE=E8=AE=A2=E5=8D=95:=20=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=B1=95=E5=BC=80=E5=88=B0`=E6=94=B6=E4=BB=B6=E7=AE=B1`?= =?UTF-8?q?=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/orders/Follow.jsx | 2 +- src/views/orders/components/MailOrderSearchModal.jsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/orders/Follow.jsx b/src/views/orders/Follow.jsx index bf4f99b..41688fe 100644 --- a/src/views/orders/Follow.jsx +++ b/src/views/orders/Follow.jsx @@ -123,7 +123,7 @@ function Follow() { useEffect(() => { const first = currentMailboxDEI || accountDEI[0].value const opi = accountListDEIMapped[first].OPI_SN - setExpandTree(prev => [...[`${opi}-today`, `${opi}-todo`, `search-orders`, mailboxActiveNode?.VParent ]]) + setExpandTree(prev => [...[`${opi}-today`, `${opi}-todo`, `search-orders`, mailboxActiveNode.key, mailboxActiveNode?.VParent ]]) return () => {} }, [currentMailboxDEI, mailboxNestedDirsActive, mailboxActiveNode]) diff --git a/src/views/orders/components/MailOrderSearchModal.jsx b/src/views/orders/components/MailOrderSearchModal.jsx index c4a0434..e751f1f 100644 --- a/src/views/orders/components/MailOrderSearchModal.jsx +++ b/src/views/orders/components/MailOrderSearchModal.jsx @@ -32,6 +32,7 @@ const MailOrderSearchModal = ({ ...props }) => { const { coli_id, sourcetype, ...mailboxParams } = valuesToSub result = await getEmailDirAction({ ...mailboxParams, opi_sn: currentMailboxOPI }, false) updateCurrentMailboxNestedDirs(result[`${currentMailboxOPI}`]) + setMailboxActiveNode({key: -1, title: '1月', iconIndex: 1, _raw: { VKey: -1, COLI_SN: 0, IsTrue: 0 }}) } else { const htOrderParams = pick(valuesToSub, ['coli_id', 'sourcetype']) result = await queryHTOrderListAction({ ...htOrderParams, opi_sn: currentMailboxOPI })