fix: reorder user setting sidebar menu items and update default redirect path (#18155)

This commit is contained in:
chanx
2026-08-12 15:56:12 +08:00
committed by GitHub
parent 6152f7e6bf
commit 9cece9ca01
2 changed files with 7 additions and 9 deletions

View File

@@ -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',

View File

@@ -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`,