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