mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-18 13:47:21 +08:00
Fix: Change route name (#14639)
### What problem does this PR solve? Fix: Change route name ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -52,7 +52,7 @@ export const useNavigatePage = () => {
|
||||
|
||||
const navigateToDataFile = useCallback(
|
||||
(id: string) => () => {
|
||||
navigate(`${Routes.DatasetBase}${Routes.DatasetBase}/${id}`);
|
||||
navigate(`${Routes.DatasetBase}${Routes.Files}/${id}`);
|
||||
},
|
||||
[navigate],
|
||||
);
|
||||
|
||||
@@ -16,7 +16,8 @@ export enum Routes {
|
||||
Home = '/home',
|
||||
Datasets = '/datasets',
|
||||
DatasetBase = '/dataset',
|
||||
Dataset = `${Routes.DatasetBase}${Routes.DatasetBase}`,
|
||||
Files = '/files',
|
||||
Dataset = `${Routes.DatasetBase}/${Routes.Files}`,
|
||||
Agent = '/agent',
|
||||
AgentTemplates = '/agent-templates',
|
||||
Agents = '/agents',
|
||||
@@ -32,7 +33,7 @@ export enum Routes {
|
||||
SearchShare = '/search/share',
|
||||
Chats = '/chats',
|
||||
Chat = '/chat',
|
||||
Files = '/files',
|
||||
|
||||
Skills = '/files/skills',
|
||||
ProfileSetting = '/profile-setting',
|
||||
Profile = '/profile',
|
||||
@@ -50,7 +51,7 @@ export enum Routes {
|
||||
ProfileModel = `${ProfileSetting}${Model}`,
|
||||
ProfilePrompt = `${ProfileSetting}${Prompt}`,
|
||||
ProfileProfile = `${ProfileSetting}${Profile}`,
|
||||
DatasetTesting = '/testing',
|
||||
DatasetTesting = '/retrieval',
|
||||
Chunk = '/chunk',
|
||||
ChunkResult = `${Chunk}${Chunk}`,
|
||||
Parsed = '/parsed',
|
||||
@@ -63,8 +64,8 @@ export enum Routes {
|
||||
ChatShare = `${Chats}/share`,
|
||||
ChatWidget = `${Chats}/widget`,
|
||||
UserSetting = '/user-setting',
|
||||
DataSetOverview = '/dataset-overview',
|
||||
DataSetSetting = '/dataset-setting',
|
||||
DataSetOverview = '/logs',
|
||||
DataSetSetting = '/configuration',
|
||||
DataflowResult = '/dataflow-result',
|
||||
Admin = '/admin',
|
||||
AdminServices = `${Admin}/services`,
|
||||
|
||||
Reference in New Issue
Block a user