refactor(header): 默认状态恢复Agent功能入口
This commit is contained in:
parent
6057163f28
commit
4fd73f4cb3
12
README.md
12
README.md
|
@ -95,18 +95,6 @@ docker cp dist ragflow-server:/ragflow/web/
|
|||
```
|
||||
|
||||
|
||||
|
||||
## Agent功能恢复
|
||||
|
||||
由于在我的应用场景中,不需要Agent功能,故隐藏了Agent按钮的入口,如需恢复Agent功能,可修改`web\src\layouts\components\header\index.tsx`,对以下内容取消注释:
|
||||
|
||||
```tsx
|
||||
{ path: '/flow', name: t('flow'), icon: GraphIcon },
|
||||
```
|
||||
|
||||
同时可将排列样式进行重置,以还原原本的样式布局,修改`web\src\layouts\components\header\index.less`文件,替换为ragflow原始样式:`https://github.com/infiniflow/ragflow/blob/main/web/src/layouts/components/header/index.less`
|
||||
|
||||
|
||||
## 交流群
|
||||
如果有其它需求或问题建议,可加入交流群进行讨论。
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { ReactComponent as FileIcon } from '@/assets/svg/file-management.svg';
|
||||
import { ReactComponent as GraphIcon } from '@/assets/svg/graph.svg';
|
||||
import { ReactComponent as KnowledgeBaseIcon } from '@/assets/svg/knowledge-base.svg';
|
||||
import { ReactComponent as WriteIcon } from '@/assets/svg/write.svg';
|
||||
import { useTranslate } from '@/hooks/common-hooks';
|
||||
|
@ -30,7 +31,7 @@ const RagHeader = () => {
|
|||
{ path: '/knowledge', name: t('knowledgeBase'), icon: KnowledgeBaseIcon },
|
||||
{ path: '/write', name: t('write'), icon: WriteIcon },
|
||||
{ path: '/search', name: t('search'), icon: SearchOutlined },
|
||||
// { path: '/flow', name: t('flow'), icon: GraphIcon },
|
||||
{ path: '/flow', name: t('flow'), icon: GraphIcon },
|
||||
{ path: '/file', name: t('fileManager'), icon: FileIcon },
|
||||
],
|
||||
[t],
|
||||
|
|
|
@ -26,7 +26,7 @@ const RightToolBar = () => {
|
|||
const { setTheme, theme } = useTheme();
|
||||
|
||||
const {
|
||||
data: { language = '简体中文' },
|
||||
data: { language = 'chinese' },
|
||||
} = useFetchUserInfo();
|
||||
|
||||
const handleItemClick: MenuProps['onClick'] = ({ key }) => {
|
||||
|
|
Loading…
Reference in New Issue