From 7cd6e1b2aa16d4dd48de7a39d1a6ac856393ea97 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Wed, 18 Jun 2025 13:55:58 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=9C=A8=E7=BA=BF=E8=81=8A=E5=A4=A9?= =?UTF-8?q?=E5=85=B1=E7=94=A8=E8=AE=A2=E5=8D=95=E4=BF=A1=E6=81=AF=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ChatWindow.jsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/ChatWindow.jsx b/src/views/ChatWindow.jsx index 2f6d47d..1f38461 100644 --- a/src/views/ChatWindow.jsx +++ b/src/views/ChatWindow.jsx @@ -4,12 +4,11 @@ import { RightCircleOutlined, RightOutlined, ReloadOutlined, MenuFoldOutlined, M // import { useParams, useNavigate } from 'react-router-dom'; import MessagesHeader from './Conversations/Online/MessagesHeader'; import MessagesWrapper from './Conversations/Online/MessagesWrapper'; -import InputComposer from './Conversations/Online/Input/InputComposer'; import ConversationsList from './Conversations/Online/ConversationsList'; -import CustomerProfile from './Conversations/Online/order/CustomerProfile'; -// import { useAuthContext } from '@/stores/AuthContext'; -// import useConversationStore from '@/stores/ConversationStore'; +import OrderProfile from '@/components/OrderProfile' import ReplyWrapper from './Conversations/Online/ReplyWrapper'; +import useConversationStore from '@/stores/ConversationStore'; +import { useShallow } from 'zustand/react/shallow'; import './Conversations/Conversations.css'; import EmailEditorPopup from './Conversations/Online/Input/EmailEditorPopup'; @@ -24,6 +23,9 @@ const ChatWindow = () => { const [collapsedLeft, setCollapsedLeft] = useState(false); const [collapsedRight, setCollapsedRight] = useState(true); + + const currentOrder = useConversationStore(useShallow(state => state.currentConversation?.coli_sn || "")); + return ( <> @@ -73,7 +75,7 @@ const ChatWindow = () => { collapsedWidth={0} trigger={null} collapsed={collapsedRight}> - +