fix: restore control center home

This commit is contained in:
2026-06-21 20:09:19 +08:00
parent 61f164a6f8
commit 75f8ffd47f
8 changed files with 27 additions and 31 deletions
+4 -4
View File
@@ -49,11 +49,11 @@ 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."""
"""Keep the retained control center on the original configurable dashboard."""
if menu.name == "ControlCenter":
menu.path = "/dashboard/workspace"
menu.component = "/dashboard/workspace/index"
menu.query = None
menu.path = "/page-render/main_home"
menu.component = "/_core/page-render/index"
menu.query = {"pageCode": "main_home"}
class MenuService(BaseService[Menu, MenuCreate, MenuUpdate]):