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} /> )}