From 09215bad572358672c04f9e1258c878e6b48006c Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Thu, 12 Feb 2026 22:47:17 +0800 Subject: [PATCH] fix: add config tabs and routing for normal and system configurations --- .../i18n/locales/en-US/core/navigation.json | 4 ++ .../i18n/locales/zh-CN/core/navigation.json | 4 ++ .../full/vertical-sidebar/sidebarItem.ts | 14 ++++- dashboard/src/router/MainRoutes.ts | 8 +++ dashboard/src/views/ConfigPage.vue | 60 ++++++++++--------- 5 files changed, 62 insertions(+), 28 deletions(-) diff --git a/dashboard/src/i18n/locales/en-US/core/navigation.json b/dashboard/src/i18n/locales/en-US/core/navigation.json index 3c70afd80..9526729db 100644 --- a/dashboard/src/i18n/locales/en-US/core/navigation.json +++ b/dashboard/src/i18n/locales/en-US/core/navigation.json @@ -40,5 +40,9 @@ "notFound": "Changelog for this version not found", "selectVersion": "Select Version", "current": "Current" + }, + "configTabs": { + "normal": "Normal Config", + "system": "System Config" } } diff --git a/dashboard/src/i18n/locales/zh-CN/core/navigation.json b/dashboard/src/i18n/locales/zh-CN/core/navigation.json index 9481cc259..4713265de 100644 --- a/dashboard/src/i18n/locales/zh-CN/core/navigation.json +++ b/dashboard/src/i18n/locales/zh-CN/core/navigation.json @@ -40,5 +40,9 @@ "notFound": "未找到该版本的更新日志", "selectVersion": "选择版本", "current": "当前" + }, + "configTabs": { + "normal": "普通配置", + "system": "系统配置" } } diff --git a/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts b/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts index 69a3791fa..1f358aa0f 100644 --- a/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts +++ b/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts @@ -36,7 +36,19 @@ const sidebarItem: menu[] = [ { title: 'core.navigation.config', icon: 'mdi-cog', - to: '/config', + to: '/config#normal', + children: [ + { + title: 'core.navigation.configTabs.normal', + icon: 'mdi-cog', + to: '/config#normal' + }, + { + title: 'core.navigation.configTabs.system', + icon: 'mdi-cog-outline', + to: '/config#system' + } + ] }, { title: 'core.navigation.extension', diff --git a/dashboard/src/router/MainRoutes.ts b/dashboard/src/router/MainRoutes.ts index ce0706498..024f591cc 100644 --- a/dashboard/src/router/MainRoutes.ts +++ b/dashboard/src/router/MainRoutes.ts @@ -41,6 +41,14 @@ const MainRoutes = { path: '/config', component: () => import('@/views/ConfigPage.vue') }, + { + path: '/normal', + redirect: '/config#normal' + }, + { + path: '/system', + redirect: '/config#system' + }, { name: 'Default', path: '/dashboard/default', diff --git a/dashboard/src/views/ConfigPage.vue b/dashboard/src/views/ConfigPage.vue index dd4bbd715..617c6716c 100644 --- a/dashboard/src/views/ConfigPage.vue +++ b/dashboard/src/views/ConfigPage.vue @@ -4,29 +4,17 @@