mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-13 20:26:51 +08:00
fix: reorder user setting sidebar menu items and update default redirect path (#18155)
This commit is contained in:
@@ -41,6 +41,12 @@ import { useTranslation } from 'react-i18next';
|
||||
import { useHandleMenuClick } from './hooks';
|
||||
|
||||
const menuItems = (t: TFunction) => [
|
||||
{
|
||||
icon: <LucideBox className="size-[1em]" />,
|
||||
label: t('setting.model'),
|
||||
key: Routes.Model,
|
||||
'data-testid': 'settings-nav-model-providers',
|
||||
},
|
||||
{
|
||||
icon: <LucideServer className="size-[1em]" />,
|
||||
label: t('setting.dataSources'),
|
||||
@@ -51,12 +57,6 @@ const menuItems = (t: TFunction) => [
|
||||
label: t('setting.chatChannels'),
|
||||
key: Routes.ChatChannel,
|
||||
},
|
||||
{
|
||||
icon: <LucideBox className="size-[1em]" />,
|
||||
label: t('setting.model'),
|
||||
key: Routes.Model,
|
||||
'data-testid': 'settings-nav-model-providers',
|
||||
},
|
||||
{
|
||||
icon: <IconFontFill name="mcp" className="size-[1em]" />,
|
||||
label: 'MCP',
|
||||
|
||||
@@ -285,9 +285,7 @@ const routeConfigOptions = [
|
||||
children: [
|
||||
{
|
||||
path: Routes.UserSetting,
|
||||
element: (
|
||||
<Navigate to={`/user-setting${Routes.DataSource}`} replace />
|
||||
),
|
||||
element: <Navigate to={`/user-setting/model`} replace />,
|
||||
},
|
||||
{
|
||||
path: `${Routes.UserSetting}/profile`,
|
||||
|
||||
Reference in New Issue
Block a user