Feat: Add AdvancedSettingForm #3221 (#4071)

### What problem does this PR solve?

Feat: Add AdvancedSettingForm #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-12-17 17:58:03 +08:00
committed by GitHub
parent bedc09f69c
commit 163c2a70fc
8 changed files with 365 additions and 22 deletions

View File

@ -1,4 +1,4 @@
import { DatasetBaseKey, KnowledgeRouteKey } from '@/constants/knowledge';
import { Routes } from '@/routes';
import { useCallback } from 'react';
import { useNavigate } from 'umi';
@ -6,8 +6,8 @@ export const useHandleMenuClick = () => {
const navigate = useNavigate();
const handleMenuClick = useCallback(
(key: KnowledgeRouteKey) => () => {
navigate(`/${DatasetBaseKey}/${key}`);
(key: Routes) => () => {
navigate(`${Routes.DatasetBase}${key}`);
},
[navigate],
);