From 3adfc1a6342e06ca8afb18cadaad0934b5e97d92 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=A2=A7=E6=A1=90?= <1058165620@qq.com>
Date: Mon, 30 Dec 2024 15:41:54 +0800
Subject: [PATCH] =?UTF-8?q?refactor(components):=20=E4=BC=98=E5=8C=96?=
=?UTF-8?q?=E8=81=8A=E5=A4=A9=E7=BB=84=E4=BB=B6=E5=92=8C=E5=AE=9E=E6=97=B6?=
=?UTF-8?q?=E5=91=8A=E8=AD=A6=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 聊天组件:将发送按钮添加点击事件,简化 onPressEnter 事件处理
- 实时告警页面:更新刷新按钮逻辑,优化表格行样式
---
src/components/chat/moon-chat.tsx | 6 ++----
src/pages/realtime/alarm/index.tsx | 13 +++++++++----
2 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/src/components/chat/moon-chat.tsx b/src/components/chat/moon-chat.tsx
index 5decc9d..4523e8a 100644
--- a/src/components/chat/moon-chat.tsx
+++ b/src/components/chat/moon-chat.tsx
@@ -190,14 +190,12 @@ export default function MoonChat() {
loading ? (
} onClick={handleClose} />
) : (
-
+
)
}
value={msg}
onChange={(e) => setMsg(e.target.value)}
- onPressEnter={() => {
- sendMessage()
- }}
+ onPressEnter={sendMessage}
/>
diff --git a/src/pages/realtime/alarm/index.tsx b/src/pages/realtime/alarm/index.tsx
index 061fa8c..1111c53 100644
--- a/src/pages/realtime/alarm/index.tsx
+++ b/src/pages/realtime/alarm/index.tsx
@@ -247,7 +247,14 @@ const Group: React.FC = () => {
checked={showLevelColor}
onChange={setShowLevelColor}
/>
-