feat(settings): refactor system settings management and UI enhancements

- Consolidated global system settings into the standard Settings modal, improving accessibility and user experience.
- Updated routing to redirect system settings to the new modal structure, ensuring a seamless transition for users.
- Enhanced UI components for better responsiveness and visual clarity, including adjustments to layout and styling.
- Added visibility controls for system admin-specific settings, ensuring proper access management.
- Refactored related comments and documentation for improved clarity on the new settings structure.
This commit is contained in:
wizardchen
2026-05-24 22:07:50 +08:00
committed by lyingbug
parent d074dc067a
commit 554ba9ef74
5 changed files with 104 additions and 59 deletions
+5 -5
View File
@@ -148,15 +148,15 @@ const router = createRouter({
path: "system",
component: () => import("../views/system/SystemLayout.vue"),
meta: { requiresInit: true, requiresAuth: true, requiresSystemAdmin: true },
redirect: "/platform/system/settings",
redirect: "/platform/system/admins",
children: [
{
// P1 default landing page — the SystemAdmin lands here
// because most platform-level operations involve tweaking
// a setting, not promoting another admin.
// Kept as a compatibility URL. Global settings now live in
// the standard settings modal rather than a standalone
// routed page.
path: "settings",
name: "systemSettings",
component: () => import("../views/system/SystemSettings.vue"),
redirect: { path: "/platform/settings", query: { section: "system-global" } },
meta: { requiresInit: true, requiresAuth: true, requiresSystemAdmin: true }
},
{