|
|
@ -8,6 +8,7 @@ import OrderProfile from '@/components/OrderProfile'
|
|
|
|
import Mailbox from './components/Mailbox'
|
|
|
|
import Mailbox from './components/Mailbox'
|
|
|
|
import useConversationStore from '@/stores/ConversationStore';
|
|
|
|
import useConversationStore from '@/stores/ConversationStore';
|
|
|
|
import { MailboxDirIcon } from './components/MailboxDirIcon'
|
|
|
|
import { MailboxDirIcon } from './components/MailboxDirIcon'
|
|
|
|
|
|
|
|
import { useVisibilityState } from '@/hooks/useVisibilityState'
|
|
|
|
|
|
|
|
|
|
|
|
const deptMap = new Map([
|
|
|
|
const deptMap = new Map([
|
|
|
|
['1', 'CH'], // CH直销组
|
|
|
|
['1', 'CH'], // CH直销组
|
|
|
@ -145,7 +146,15 @@ function Follow() {
|
|
|
|
return () => {}
|
|
|
|
return () => {}
|
|
|
|
}, [])
|
|
|
|
}, [])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isVisible = useVisibilityState();
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
|
|
// console.log('effect isVisible', isVisible);
|
|
|
|
|
|
|
|
if (isVisible && currentMailboxOPI) {
|
|
|
|
|
|
|
|
getOPIEmailDir(currentMailboxOPI, null, true)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return () => {}
|
|
|
|
|
|
|
|
}, [isVisible]);
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<>
|
|
|
|