feat(admin): 新增后台系统配置管理

This commit is contained in:
yml2213
2026-10-30 13:32:34 +08:00
parent 1acf433611
commit df251c2c3c
10 changed files with 650 additions and 6 deletions
+6 -1
View File
@@ -108,6 +108,11 @@ const AdminAuditLogsPage = lazy(() =>
default: module.AdminAuditLogsPage,
}))
)
const AdminSystemConfigsPage = lazy(() =>
import('@/features/admin/AdminSystemConfigsPage').then(module => ({
default: module.AdminSystemConfigsPage,
}))
)
const AdminLayout = lazy(() =>
import('@/layouts/AdminLayout').then(module => ({ default: module.AdminLayout }))
)
@@ -117,7 +122,6 @@ const AdminSectionPlaceholder = lazy(() =>
const adminSections: Array<{ path: string; title: string; description: string }> = [
{ path: 'distribution/sites', title: '分销站点', description: '管理分站、规则、结算与站点钱包。' },
{ path: 'system-configs', title: '系统配置', description: '维护首页、发布、订单与支付配置。' },
]
export function AppRouter() {
@@ -159,6 +163,7 @@ export function AppRouter() {
<Route path="finance" element={<AdminFinancePage />} />
<Route path="announcements" element={<AdminAnnouncementsPage />} />
<Route path="audit-logs" element={<AdminAuditLogsPage />} />
<Route path="system-configs" element={<AdminSystemConfigsPage />} />
{adminSections.map(section => (
<Route
key={section.path}