mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Add agent page. #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -38,6 +38,14 @@ export const useNavigatePage = () => {
|
||||
navigate(Routes.Chat);
|
||||
}, [navigate]);
|
||||
|
||||
const navigateToAgentList = useCallback(() => {
|
||||
navigate(Routes.Agents);
|
||||
}, [navigate]);
|
||||
|
||||
const navigateToAgent = useCallback(() => {
|
||||
navigate(Routes.Agent);
|
||||
}, [navigate]);
|
||||
|
||||
const navigateToChunkParsedResult = useCallback(
|
||||
(id: string, knowledgeId?: string) => () => {
|
||||
navigate(
|
||||
@ -81,5 +89,7 @@ export const useNavigatePage = () => {
|
||||
navigateToChunkParsedResult,
|
||||
getQueryString,
|
||||
navigateToChunk,
|
||||
navigateToAgentList,
|
||||
navigateToAgent,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user