refactor(settings): AI 模型接入拆为独立 tab 页(/settings/ai)
系统设置分组 tab 顺序:通用配置 → 用户管理 → 审计日志 → LDAP 接入 → AI 模型接入 → 默认镜像源;设置主页去掉内嵌卡片,子页复用 AiModelSection
This commit is contained in:
1 parent
6923a12dd9
commit
37a610b603
5 files changed
+22
-3
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import { memo } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { PageContainer } from '@/components/PageContainer'
|
||||
import { AiModelSection } from './components/AiModelSection'
|
||||
|
||||
/** AI 模型接入:系统设置分组的一个 tab(原设置页通用配置内的卡片拆出) */
|
||||
const AiModelPage = memo(function AiModelPage() {
|
||||
const { t } = useTranslation('aiops')
|
||||
return (
|
||||
<PageContainer title={t('config.sectionTitle')}>
|
||||
<AiModelSection />
|
||||
</PageContainer>
|
||||
)
|
||||
})
|
||||
|
||||
export default AiModelPage
|
||||
@@ -13,7 +13,6 @@ import { PageContainer } from '@/components/PageContainer'
|
||||
import { ThemeSection } from './components/ThemeSection'
|
||||
import { RetentionSection } from './components/RetentionSection'
|
||||
import { LicenseSection } from './components/LicenseSection'
|
||||
import { AiModelSection } from './components/AiModelSection'
|
||||
import { LanguageSection } from '@/i18n/LanguageSection'
|
||||
import { Palette } from 'lucide-react'
|
||||
|
||||
@@ -72,7 +71,6 @@ const SettingsPage = memo(function SettingsPage() {
|
||||
return (
|
||||
<PageContainer title={t('title')}>
|
||||
<LicenseSection />
|
||||
<AiModelSection />
|
||||
{/* 不再有内层 tab:LDAP / 镜像源 已拆成独立路由,
|
||||
由左侧「系统设置」分组的顶层 tab 切换(单层 tab 更好理解)。 */}
|
||||
<div className="space-y-6">
|
||||
|
||||
Reference in new issue
Block a user