diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts
index d582ef0a..53f4d638 100755
--- a/frontend/src/i18n/locales/en-US.ts
+++ b/frontend/src/i18n/locales/en-US.ts
@@ -635,6 +635,13 @@ export default {
systemSettings: 'System Settings',
tenantInfo: 'Tenant Info',
apiInfo: 'API Info',
+ navGroups: {
+ basic: 'Basic',
+ ai: 'AI Capabilities',
+ data: 'Data & Engines',
+ workspace: 'Workspace & Access',
+ system: 'System Info',
+ },
weknoraCloud: {
title: 'WeKnora Cloud',
description: 'Configure WeKnora Cloud APPID and APPSECRET credentials. Credentials are used for model services and document parsing engine.',
diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts
index ec6ce70e..f39baec6 100755
--- a/frontend/src/i18n/locales/ko-KR.ts
+++ b/frontend/src/i18n/locales/ko-KR.ts
@@ -511,6 +511,13 @@ export default {
systemSettings: "시스템 설정",
tenantInfo: "테넌트 정보",
apiInfo: "API 정보",
+ navGroups: {
+ basic: "기본",
+ ai: "AI 기능",
+ data: "데이터 및 엔진",
+ workspace: "공간 및 권한",
+ system: "시스템 정보",
+ },
weknoraCloud: {
title: 'WeKnora Cloud',
description: 'WeKnora Cloud APPID 및 APPSECRET 자격 증명을 설정합니다. 자격 증명은 모델 서비스와 문서 파싱 엔진에 사용됩니다.',
diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts
index 0b662a68..f0c9af6d 100755
--- a/frontend/src/i18n/locales/ru-RU.ts
+++ b/frontend/src/i18n/locales/ru-RU.ts
@@ -620,6 +620,13 @@ export default {
systemSettings: 'Настройки системы',
tenantInfo: 'Информация о арендаторе',
apiInfo: 'Информация API',
+ navGroups: {
+ basic: 'Основное',
+ ai: 'AI-возможности',
+ data: 'Данные и движки',
+ workspace: 'Пространство и доступ',
+ system: 'Сведения о системе',
+ },
weknoraCloud: {
title: 'WeKnora Cloud',
description: 'Настройте учётные данные APPID и APPSECRET для WeKnora Cloud. Данные используются для модельных сервисов и движка парсинга документов.',
diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts
index 24c6e703..fec0a873 100755
--- a/frontend/src/i18n/locales/zh-CN.ts
+++ b/frontend/src/i18n/locales/zh-CN.ts
@@ -508,6 +508,13 @@ export default {
systemSettings: "系统设置",
tenantInfo: "租户信息",
apiInfo: "API信息",
+ navGroups: {
+ basic: "基础",
+ ai: "AI 能力",
+ data: "数据与引擎",
+ workspace: "空间与权限",
+ system: "系统信息",
+ },
weknoraCloud: {
title: "WeKnora Cloud",
description: "配置 WeKnora Cloud 的 APPID 和 APPSECRET 凭证。凭证用于模型服务和文档解析引擎。",
diff --git a/frontend/src/views/settings/Settings.vue b/frontend/src/views/settings/Settings.vue
index 5d645b54..c4e7c42d 100644
--- a/frontend/src/views/settings/Settings.vue
+++ b/frontend/src/views/settings/Settings.vue
@@ -17,69 +17,72 @@
-
-
-
-
-
-
-
-
{{ item.label }}
-
-
-
-
-
+
+ {{ group.label }}
+
-
+
+
+
+
+
+
@@ -196,23 +199,26 @@ const currentSection = ref('general')
const currentSubSection = ref('')
const expandedMenus = ref([])
+type NavItem = {
+ key: string
+ icon: string
+ label: string
+ children?: Array<{ key: string; label: string }>
+}
+
+type NavGroup = {
+ key: string
+ label: string
+ items: NavItem[]
+}
+
const navItems = computed(() => {
- // Optional `children` keeps the existing template's submenu plumbing
- // happy (it iterates `item.children`); none of the current tabs use
- // it, but staying compatible avoids introducing a new typing-only
- // diff scattered across the template.
- type NavItem = {
- key: string
- icon: string
- label: string
- children?: Array<{ key: string; label: string }>
- }
const items: NavItem[] = [
{ key: 'general', icon: 'setting', label: t('general.title') },
{ key: 'ollama', icon: 'server', label: 'Ollama' },
{ key: 'weknoracloud', icon: '', label: 'WeKnora Cloud' },
{ key: 'models', icon: 'control-platform', label: t('settings.modelManagement') },
- { key: 'websearch', icon: 'search', label: t('settings.webSearchConfig') },
+ { key: 'websearch', icon: 'search', label: t('settings.webSearchConfig') },
{ key: 'chathistory', icon: 'chat', label: t('chatHistorySettings.title') },
{ key: 'vectorstore', icon: 'data-base', label: t('settings.vectorStoreEngine') },
{ key: 'parser', icon: 'file-search', label: t('settings.parserEngine') },
@@ -232,6 +238,18 @@ const navItems = computed(() => {
return items
})
+const navGroups = computed(() => {
+ const itemMap = new Map(navItems.value.map((item) => [item.key, item]))
+ const pickItems = (keys: string[]) => keys.map((key) => itemMap.get(key)).filter(Boolean) as NavItem[]
+ return [
+ { key: 'basic', label: t('settings.navGroups.basic'), items: pickItems(['general']) },
+ { key: 'ai', label: t('settings.navGroups.ai'), items: pickItems(['models', 'ollama', 'weknoracloud', 'websearch', 'mcp']) },
+ { key: 'data', label: t('settings.navGroups.data'), items: pickItems(['vectorstore', 'parser', 'storage']) },
+ { key: 'workspace', label: t('settings.navGroups.workspace'), items: pickItems(['tenant', 'members']) },
+ { key: 'system', label: t('settings.navGroups.system'), items: pickItems(['chathistory', 'system', 'api']) },
+ ].filter((group) => group.items.length > 0)
+})
+
// 导航项点击处理
const handleNavClick = (item: any) => {
if (item.children && item.children.length > 0) {
@@ -421,15 +439,23 @@ onUnmounted(() => {
}
.settings-nav {
- padding: 16px 8px;
+ padding: 12px 8px 16px;
flex: 1;
}
+.nav-group-title {
+ padding: 12px 16px 6px;
+ color: var(--td-text-color-placeholder);
+ font-size: 12px;
+ font-weight: 600;
+ letter-spacing: 0.02em;
+}
+
.nav-item {
display: flex;
align-items: center;
- padding: 10px 16px;
- margin-bottom: 4px;
+ padding: 8px 16px;
+ margin-bottom: 2px;
border-radius: 6px;
cursor: pointer;
color: var(--td-text-color-secondary);