From ae2b96c3ffb74353f895af02091c479e79670f80 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Wed, 20 Mar 2024 14:33:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=A8=E7=BA=BF=E8=81=8A=E5=A4=A9:=20?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Conversations/Components/ConversationsList.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/Conversations/Components/ConversationsList.jsx b/src/views/Conversations/Components/ConversationsList.jsx index f1fed1b..12c55f4 100644 --- a/src/views/Conversations/Components/ConversationsList.jsx +++ b/src/views/Conversations/Components/ConversationsList.jsx @@ -71,6 +71,10 @@ const Conversations = ({ mobile }) => { } else { // findCurrentIndex = conversationsList.findIndex((item) => item.coli_sn === Number(colisn)); // data.findIndex((item) => item.sn === currentConversation.sn); } + } else if (isEmpty(whatsappID)) { + // 刷新页面 + findCurrentIndex = conversationsList.findIndex((item) => `${item.coli_sn}` === `${colisn}`); + findCurrent = conversationsList[findCurrentIndex]; } if (findCurrentIndex >= 0) { setCurrentConversation(findCurrent);