From 316a23729785869382fa3d97de98d00794afed7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B6=85=E7=BA=A7=E8=80=81=E7=99=BD=E5=85=94?= Date: Tue, 2 Sep 2025 11:49:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(ckchat):=20=E4=BF=AE=E5=A4=8D=E8=81=8A?= =?UTF-8?q?=E5=A4=A9=E7=AA=97=E5=8F=A3=E8=BE=93=E5=85=A5=E6=A1=86=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E5=A4=84=E7=90=86=E5=92=8C=E7=B1=BB=E5=9E=8B=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复输入框的onKeyPress事件为onKeyDown以更好处理键盘事件 更新Person组件props类型定义以支持weChatGroup类型 将getkfUserList改为异步函数以备后续实现 --- .../components/ChatWindow/components/MessageEnter/index.tsx | 0 .../ckbox/components/ChatWindow/components/Person/index.tsx | 4 ++-- Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx | 2 +- Cunkebao/src/store/module/ckchat/ckchat.ts | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 Cunkebao/src/pages/pc/ckbox/components/ChatWindow/components/MessageEnter/index.tsx diff --git a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/components/MessageEnter/index.tsx b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/components/MessageEnter/index.tsx new file mode 100644 index 00000000..e69de29b diff --git a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/components/Person/index.tsx b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/components/Person/index.tsx index 3d100f9b..c96eea65 100644 --- a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/components/Person/index.tsx +++ b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/components/Person/index.tsx @@ -23,14 +23,14 @@ import { EditOutlined, CheckOutlined, } from "@ant-design/icons"; -import { ContractData } from "@/pages/pc/ckbox/data"; +import { ContractData, weChatGroup } from "@/pages/pc/ckbox/data"; import { useCkChatStore } from "@/store/module/ckchat/ckchat"; import styles from "./Person.module.scss"; const { Sider } = Layout; interface PersonProps { - contract: ContractData; + contract: ContractData | weChatGroup; showProfile: boolean; onToggleProfile?: () => void; } diff --git a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx index 198eef65..f015457c 100644 --- a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx +++ b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx @@ -965,7 +965,7 @@ const ChatWindow: React.FC = ({