mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-23 23:16:58 +08:00
Fix:Optimize Agent template page, fix bugs in knowledge base (#9009)
### What problem does this PR solve? Replace Avatar with RAGFlowAvatar component for knowledge base and agent, optimize Agent template page, and modify bugs in knowledge base #3221 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -3,9 +3,8 @@ import { useTranslate } from '@/hooks/common-hooks';
|
||||
import { useFetchKnowledgeList } from '@/hooks/knowledge-hooks';
|
||||
import { UserOutlined } from '@ant-design/icons';
|
||||
import { Avatar as AntAvatar, Form, Select, Space } from 'antd';
|
||||
import { Book } from 'lucide-react';
|
||||
import { useFormContext } from 'react-hook-form';
|
||||
import { Avatar, AvatarFallback, AvatarImage } from './ui/avatar';
|
||||
import { RAGFlowAvatar } from './ragflow-avatar';
|
||||
import { FormControl, FormField, FormItem, FormLabel } from './ui/form';
|
||||
import { MultiSelect } from './ui/multi-select';
|
||||
|
||||
@ -81,12 +80,7 @@ export function KnowledgeBaseFormField() {
|
||||
label: x.name,
|
||||
value: x.id,
|
||||
icon: () => (
|
||||
<Avatar className="size-4 mr-2">
|
||||
<AvatarImage src={x.avatar} />
|
||||
<AvatarFallback>
|
||||
<Book />
|
||||
</AvatarFallback>
|
||||
</Avatar>
|
||||
<RAGFlowAvatar className="size-4 mr-2" avatar={x.avatar} name={x.name} />
|
||||
),
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user