mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-02 18:45:29 +08:00
### What problem does this PR solve? Feat: Bind the route to the navigation bar in the head #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { useNextFetchKnowledgeList } from '@/hooks/knowledge-hooks';
|
||||
import { useFetchKnowledgeList } from '@/hooks/knowledge-hooks';
|
||||
import { UserOutlined } from '@ant-design/icons';
|
||||
import type { TreeDataNode, TreeProps } from 'antd';
|
||||
import { Avatar, Layout, Space, Spin, Tree, Typography } from 'antd';
|
||||
@ -27,7 +27,7 @@ const SearchSidebar = ({
|
||||
checkedList,
|
||||
setCheckedList,
|
||||
}: IProps) => {
|
||||
const { list, loading } = useNextFetchKnowledgeList();
|
||||
const { list, loading } = useFetchKnowledgeList();
|
||||
|
||||
const groupedList = useMemo(() => {
|
||||
return list.reduce((pre: TreeDataNode[], cur) => {
|
||||
|
||||
Reference in New Issue
Block a user