Restore rendered control center baseline

This commit is contained in:
2026-06-11 06:44:08 +08:00
parent a1b9ff5146
commit bf61f4f98e
13 changed files with 204 additions and 856 deletions
+4 -4
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 = "v7"
AI_AGENT_ADMIN_MENU_CACHE_VERSION = "v8"
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}:"
@@ -52,10 +52,10 @@ def _filter_ai_agent_admin_menus(menus: List[Menu]) -> List[Menu]:
def _normalize_ai_agent_admin_menu(menu: Menu) -> None:
"""Route the retained control center to the lightweight native dashboard."""
"""Route the retained control center to the original rendered dashboard."""
if menu.name == "ControlCenter":
menu.path = "/dashboard"
menu.component = "dashboard/index"
menu.path = "/page-render/main_home"
menu.component = "online-dev/page-render/index"
menu.query = None