mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
feat: jumping from the chunk list page to the file list page keeps th… (#174)
* feat: jumping from the chunk list page to the file list page keeps the original page number. * feat: jump to the file upload page and reset the file list page number to 1
This commit is contained in:
@ -6,8 +6,9 @@ import Toolbar from '../right-toolbar';
|
||||
|
||||
import styles from './index.less';
|
||||
|
||||
import { useNavigateWithFromState } from '@/hooks/routeHook';
|
||||
import { useCallback, useMemo } from 'react';
|
||||
import { useLocation, useNavigate } from 'umi';
|
||||
import { useLocation } from 'umi';
|
||||
|
||||
const { Header } = Layout;
|
||||
|
||||
@ -15,7 +16,7 @@ const RagHeader = () => {
|
||||
const {
|
||||
token: { colorBgContainer },
|
||||
} = theme.useToken();
|
||||
const navigate = useNavigate();
|
||||
const navigate = useNavigateWithFromState();
|
||||
const { pathname } = useLocation();
|
||||
|
||||
const tagsData = useMemo(
|
||||
|
||||
Reference in New Issue
Block a user