fix: dropdown click issue

This commit is contained in:
AI Clinical Dev Team
2025-10-11 18:05:28 +08:00
parent 5e06a68189
commit be56c3d35d

View File

@@ -122,12 +122,13 @@ const MessageInput: React.FC<MessageInputProps> = ({
<Space>
{/* @知识库按钮 */}
{knowledgeBases.length > 0 && (
<Dropdown
menu={{ items: knowledgeBaseMenuItems }}
placement="topLeft"
disabled={loading}
>
<Tooltip title="@知识库 - 基于知识库内容回答">
<Tooltip title="@知识库 - 基于知识库内容回答">
<Dropdown
menu={{ items: knowledgeBaseMenuItems }}
placement="topLeft"
trigger={['click']}
disabled={loading}
>
<Button
icon={<FileTextOutlined />}
type="text"
@@ -135,8 +136,8 @@ const MessageInput: React.FC<MessageInputProps> = ({
>
@知识库
</Button>
</Tooltip>
</Dropdown>
</Dropdown>
</Tooltip>
)}
{/* 上传附件按钮(预留) */}