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:
@@ -56,7 +56,9 @@ const KnowledgeCard = ({ item }: IProps) => {
|
||||
};
|
||||
|
||||
const handleCardClick = () => {
|
||||
navigate(`/knowledge/${KnowledgeRouteKey.Dataset}?id=${item.id}`);
|
||||
navigate(`/knowledge/${KnowledgeRouteKey.Dataset}?id=${item.id}`, {
|
||||
state: { from: 'list' },
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user