feat: add lightweight admin workspace

This commit is contained in:
2026-06-21 17:48:43 +08:00
parent 56c1eec051
commit f9050c95d1
13 changed files with 603 additions and 16 deletions
+3 -3
View File
@@ -17,7 +17,7 @@ from core.menu.schema import MenuCreate, MenuUpdate
menu_cache = CacheManager(prefix="menu:")
# 缓存key
AI_AGENT_ADMIN_MENU_CACHE_VERSION = "v11"
AI_AGENT_ADMIN_MENU_CACHE_VERSION = "v12"
MENU_TREE_CACHE_KEY = f"tree:ai_agent_admin:{AI_AGENT_ADMIN_MENU_CACHE_VERSION}"
USER_ROUTE_CACHE_PREFIX = f"user_route:ai_agent_admin:{AI_AGENT_ADMIN_MENU_CACHE_VERSION}:"
@@ -51,8 +51,8 @@ def _filter_ai_agent_admin_menus(menus: List[Menu]) -> List[Menu]:
def _normalize_ai_agent_admin_menu(menu: Menu) -> None:
"""Keep the retained control center on the lightweight admin dashboard."""
if menu.name == "ControlCenter":
menu.path = "/page-render/main_home"
menu.component = "_core/page-render/index"
menu.path = "/dashboard/workspace"
menu.component = "/dashboard/workspace/index"
menu.query = None
+5 -5
View File
@@ -7038,9 +7038,9 @@
"name": "ControlCenter",
"title": "menu-title.controlCenter",
"authCode": null,
"path": "/ai-platform/agent",
"path": "/dashboard/workspace",
"type": "menu",
"component": "/ai-platform/agent/index",
"component": "/dashboard/workspace/index",
"redirect": null,
"activePath": null,
"query": null,
@@ -9386,7 +9386,7 @@
"fields": {
"application_id": "23CFVEUHdZcOQyku1mbIO",
"config_key": "frontend_preferences",
"config_value": "{\"app\":{\"defaultHomePath\":\"/ai-platform/agent\"}}",
"config_value": "{\"app\":{\"defaultHomePath\":\"/dashboard/workspace\"}}",
"config_type": "preferences",
"description": "子应用UI偏好配置",
"status": true,
@@ -9406,7 +9406,7 @@
"fields": {
"application_id": "uRFPsrZ0BSJodp-qesFq6",
"config_key": "frontend_preferences",
"config_value": "{\"app\":{\"defaultHomePath\":\"/ai-platform/agent\"}}",
"config_value": "{\"app\":{\"defaultHomePath\":\"/dashboard/workspace\"}}",
"config_type": "preferences",
"description": "子应用UI偏好配置",
"status": true,
@@ -12988,7 +12988,7 @@
"cover": "",
"app_type": "ai",
"status": "published",
"home_path": "/ai-platform/agent",
"home_path": "/dashboard/workspace",
"version": 1,
"config": {},
"owner_id": null,