diff --git a/src/actions/EmailActions.js b/src/actions/EmailActions.js index 427e107..b0d3a01 100644 --- a/src/actions/EmailActions.js +++ b/src/actions/EmailActions.js @@ -195,7 +195,6 @@ export const getMailboxCountAction = async (params = { opi_sn: '' }, update = fa Object.keys(result).map(dirKey => { _MapDir.set(Number(dirKey), {..._MapDir.get(Number(dirKey)), count: result[dirKey]}); }) - console.log(_MapDir, '_MapDir') const _newToUpdate = Array.from(_MapDir.values()); const _MapRoot = new Map((readCacheDir?.tree || []).map((obj) => [obj.key, obj])) _newToUpdate.forEach((row) => { diff --git a/src/views/orders/Follow.jsx b/src/views/orders/Follow.jsx index ed60ba5..ed31b04 100644 --- a/src/views/orders/Follow.jsx +++ b/src/views/orders/Follow.jsx @@ -122,7 +122,7 @@ function Follow() { useEffect(() => { const first = currentMailboxDEI || accountDEI[0].value const opi = accountListDEIMapped[first].OPI_SN - setExpandTree([`${opi}-today`, `${opi}-todo`, `search-orders`, ...[mailboxActiveNode?.VParent || []]]) + setExpandTree(prev => [...prev, ...[`${opi}-today`, `${opi}-todo`, `search-orders`, ...[mailboxActiveNode?.VParent || []]]]) return () => {} }, [currentMailboxDEI, mailboxNestedDirsActive, mailboxActiveNode]) @@ -152,7 +152,7 @@ function Follow() { titleRender={(node) => ( {node.title} - + )} /> diff --git a/src/views/orders/components/MailBox.jsx b/src/views/orders/components/MailBox.jsx index bb9a943..a820ec0 100644 --- a/src/views/orders/components/MailBox.jsx +++ b/src/views/orders/components/MailBox.jsx @@ -206,7 +206,7 @@ const MailBox = ({ mailboxDir, onMailItemClick, ...props }) => { + { return { @@ -219,7 +219,7 @@ const MailBox = ({ mailboxDir, onMailItemClick, ...props }) => { } })} /> - + 已选: {selectedItems.length} 项; {(pagination.current - 1) * PAGE_SIZE + 1}-{Math.min(pagination.current * PAGE_SIZE, pagination.total)} of {pagination.total}