refactor: streamline admin management UI

This commit is contained in:
Lan
2026-06-03 12:06:12 +08:00
parent c81c85a41a
commit 2428409953
11 changed files with 215 additions and 1210 deletions
+6
View File
@@ -13,6 +13,11 @@ export function useAppShell() {
const { isLoading, setupRouteLoading } = useRouteLoading(router)
const { syncPublicConfig } = usePublicConfigBootstrap()
const showGlobalControls = computed(() => route.meta.showGlobalControls !== false)
const routeViewKey = computed(() =>
route.path === ROUTES.ADMIN || route.path.startsWith(`${ROUTES.ADMIN}/`)
? ROUTES.ADMIN
: route.fullPath
)
let cleanupThemeListener: (() => void) | null = null
@@ -47,6 +52,7 @@ export function useAppShell() {
isDarkMode,
isLoading,
route,
routeViewKey,
showGlobalControls
}
}