fix: restore control center home
This commit is contained in:
@@ -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]):
|
||||
|
||||
@@ -7038,12 +7038,14 @@
|
||||
"name": "ControlCenter",
|
||||
"title": "menu-title.controlCenter",
|
||||
"authCode": null,
|
||||
"path": "/dashboard/workspace",
|
||||
"path": "/page-render/main_home",
|
||||
"type": "menu",
|
||||
"component": "/dashboard/workspace/index",
|
||||
"component": "/_core/page-render/index",
|
||||
"redirect": null,
|
||||
"activePath": null,
|
||||
"query": null,
|
||||
"query": {
|
||||
"pageCode": "main_home"
|
||||
},
|
||||
"noBasicLayout": false,
|
||||
"icon": "lucide:layout-dashboard",
|
||||
"activeIcon": null,
|
||||
@@ -9386,7 +9388,7 @@
|
||||
"fields": {
|
||||
"application_id": "23CFVEUHdZcOQyku1mbIO",
|
||||
"config_key": "frontend_preferences",
|
||||
"config_value": "{\"app\":{\"defaultHomePath\":\"/dashboard/workspace\"}}",
|
||||
"config_value": "{\"app\":{\"defaultHomePath\":\"/page-render/main_home\"}}",
|
||||
"config_type": "preferences",
|
||||
"description": "子应用UI偏好配置",
|
||||
"status": true,
|
||||
@@ -9406,7 +9408,7 @@
|
||||
"fields": {
|
||||
"application_id": "uRFPsrZ0BSJodp-qesFq6",
|
||||
"config_key": "frontend_preferences",
|
||||
"config_value": "{\"app\":{\"defaultHomePath\":\"/dashboard/workspace\"}}",
|
||||
"config_value": "{\"app\":{\"defaultHomePath\":\"/page-render/main_home\"}}",
|
||||
"config_type": "preferences",
|
||||
"description": "子应用UI偏好配置",
|
||||
"status": true,
|
||||
@@ -12988,7 +12990,7 @@
|
||||
"cover": "",
|
||||
"app_type": "ai",
|
||||
"status": "published",
|
||||
"home_path": "/dashboard/workspace",
|
||||
"home_path": "/page-render/main_home",
|
||||
"version": 1,
|
||||
"config": {},
|
||||
"owner_id": null,
|
||||
|
||||
Reference in New Issue
Block a user