From ae9f5e3bdb6d41be17ced2231682cdc21de75bc3 Mon Sep 17 00:00:00 2001 From: sp mac bookpro 2605 Date: Thu, 11 Jun 2026 18:58:26 +0800 Subject: [PATCH] fix: hide chat input actions on h5 --- src/pages/chat/components/ChatInput.tsx | 8 +++++--- src/pages/chat/components/ChatPageH5.tsx | 4 ++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/pages/chat/components/ChatInput.tsx b/src/pages/chat/components/ChatInput.tsx index f90bd26..debf44e 100644 --- a/src/pages/chat/components/ChatInput.tsx +++ b/src/pages/chat/components/ChatInput.tsx @@ -25,6 +25,7 @@ export default function ChatInput(props: { onNewSession: () => void; agentList: Agent[]; onInsertMention: (agentName: string) => void; + showActions?: boolean; }) { const { input, @@ -44,7 +45,8 @@ export default function ChatInput(props: { onOpenHistory, onNewSession, agentList, - onInsertMention + onInsertMention, + showActions = true } = props; const [showMentionPopover, setShowMentionPopover] = useState(false); @@ -194,7 +196,7 @@ export default function ChatInput(props: {
-
+ {showActions &&
-
+
}
setHistoryDrawerOpen(true)}> 历史对话 +
@@ -165,6 +168,7 @@ export default function ChatPageH5({ logic }: { logic: ChatPageLogicOutput }) { onInsertMention={() => {}} onOpenHistory={() => setHistoryDrawerOpen(true)} onNewSession={handleNewSession} + showActions={false} /> )}