mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Jump from the chunk page to the dataset page #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
21
web/src/pages/chunk/index.tsx
Normal file
21
web/src/pages/chunk/index.tsx
Normal file
@ -0,0 +1,21 @@
|
||||
import { PageHeader } from '@/components/page-header';
|
||||
import {
|
||||
QueryStringMap,
|
||||
useNavigatePage,
|
||||
} from '@/hooks/logic-hooks/navigate-hooks';
|
||||
import { Outlet } from 'umi';
|
||||
|
||||
export default function ChunkPage() {
|
||||
const { navigateToDataset, getQueryString } = useNavigatePage();
|
||||
return (
|
||||
<section>
|
||||
<PageHeader
|
||||
title="Editing block"
|
||||
back={navigateToDataset(
|
||||
getQueryString(QueryStringMap.KnowledgeId) as string,
|
||||
)}
|
||||
></PageHeader>
|
||||
<Outlet />
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user