perf: 订单没有WhatsApp号码, 请求订单会话, 需要用邮箱创建

2.0/email-builder
Lei OT 10 months ago
parent b9f0e076fc
commit 1273f2dd4b

@ -46,6 +46,8 @@ const Conversations = () => {
const [activeList, setActiveList] = useState(true); const [activeList, setActiveList] = useState(true);
const [currentLoading, setCurrentLoading] = useState(false); const [currentLoading, setCurrentLoading] = useState(false);
const [shouldFetchCList, setShouldFetchCList] = useState(true);
/** /**
* *
*/ */
@ -111,9 +113,11 @@ const Conversations = () => {
}, []); }, []);
useEffect(() => { useEffect(() => {
if (order_sn) { if (order_sn && shouldFetchCList) {
setCurrentConversation({ coli_sn: Number(order_sn) })
// updateCurrentConversation({ coli_sn: Number(order_sn) });
} else {
// setCurrentConversation({ coli_sn: order_sn }) // setCurrentConversation({ coli_sn: order_sn })
updateCurrentConversation({ coli_sn: Number(order_sn) });
} }
return () => {} return () => {}
@ -141,7 +145,6 @@ const Conversations = () => {
const [listUpdateFlag, setListUpdateFlag] = useState(); const [listUpdateFlag, setListUpdateFlag] = useState();
const [switchToC, setSwitchToC] = useState({}); const [switchToC, setSwitchToC] = useState({});
const [shouldFetchCList, setShouldFetchCList] = useState(true);
useEffect(() => { useEffect(() => {
setDataSource([...topList, ...pageList]); setDataSource([...topList, ...pageList]);

Loading…
Cancel
Save