From 4e551df5e4b9360a6e389f994e37e54a9597fd90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?cls=5F=E5=AE=81=E6=B3=A2=E6=9C=AC=E6=9C=BA?= <908705107@qq.com> Date: Sat, 13 Jun 2026 16:40:10 +0800 Subject: [PATCH] fix: route default home to agents --- backend-fastapi/db_init.json | 8 ++++---- web/apps/web-ele/src/preferences.ts | 2 +- web/apps/web-ele/src/router/light-menu.ts | 2 -- web/apps/web-ele/src/router/routes/modules/ai-platform.ts | 4 ++-- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/backend-fastapi/db_init.json b/backend-fastapi/db_init.json index ab876da..a8b0693 100644 --- a/backend-fastapi/db_init.json +++ b/backend-fastapi/db_init.json @@ -7038,9 +7038,9 @@ "name": "ControlCenter", "title": "menu-title.controlCenter", "authCode": null, - "path": "/page-render/main_home", + "path": "/ai-platform/agent", "type": "menu", - "component": "online-dev/page-render/index", + "component": "/ai-platform/agent/index", "redirect": null, "activePath": null, "query": null, @@ -9386,7 +9386,7 @@ "fields": { "application_id": "23CFVEUHdZcOQyku1mbIO", "config_key": "frontend_preferences", - "config_value": "{\"app\":{\"defaultHomePath\":\"/page-render/main_home\"}}", + "config_value": "{\"app\":{\"defaultHomePath\":\"/ai-platform/agent\"}}", "config_type": "preferences", "description": "子应用UI偏好配置", "status": true, @@ -9406,7 +9406,7 @@ "fields": { "application_id": "uRFPsrZ0BSJodp-qesFq6", "config_key": "frontend_preferences", - "config_value": "{\"app\":{\"defaultHomePath\":\"/page-render/main_home\"}}", + "config_value": "{\"app\":{\"defaultHomePath\":\"/ai-platform/agent\"}}", "config_type": "preferences", "description": "子应用UI偏好配置", "status": true, diff --git a/web/apps/web-ele/src/preferences.ts b/web/apps/web-ele/src/preferences.ts index 9bbc779..7b8c426 100644 --- a/web/apps/web-ele/src/preferences.ts +++ b/web/apps/web-ele/src/preferences.ts @@ -16,7 +16,7 @@ export const overridesPreferences = defineOverridesPreferences({ enablePreferences: false, accessMode: 'mixed', authPageLayout: 'panel-center', - defaultHomePath: '/page-render/main_home', + defaultHomePath: '/ai-platform/agent', layout: 'header-sidebar-nav', preferencesButtonPosition: 'header', }, diff --git a/web/apps/web-ele/src/router/light-menu.ts b/web/apps/web-ele/src/router/light-menu.ts index 6832a8c..0b811ec 100644 --- a/web/apps/web-ele/src/router/light-menu.ts +++ b/web/apps/web-ele/src/router/light-menu.ts @@ -9,7 +9,6 @@ export const LIGHT_MENU_NAMES = new Set([ 'AnnouncementManage', 'CodexAgentChat', 'KnowledgeBase', - 'PageRenderMainHome', 'SystemManagement', 'SystemMenu', 'SystemPermission', @@ -26,7 +25,6 @@ const LIGHT_ROUTE_PATH_PREFIXES = [ '/ai-platform/workflow-runs', '/agent-chat', '/message/announcement', - '/page-render/main_home', '/system/menu', '/system/new-permission', '/system/role', diff --git a/web/apps/web-ele/src/router/routes/modules/ai-platform.ts b/web/apps/web-ele/src/router/routes/modules/ai-platform.ts index ed6042f..74ec41f 100644 --- a/web/apps/web-ele/src/router/routes/modules/ai-platform.ts +++ b/web/apps/web-ele/src/router/routes/modules/ai-platform.ts @@ -5,7 +5,7 @@ const routes: RouteRecordRaw[] = [ meta: { hideInMenu: true }, name: 'ControlCenterLegacyRedirect', path: '/control-center', - redirect: '/page-render/main_home', + redirect: '/ai-platform/agent', }, { meta: { @@ -14,7 +14,7 @@ const routes: RouteRecordRaw[] = [ }, name: 'PageRenderMainHome', path: '/page-render/main_home', - component: () => import('#/views/_core/page-render/index.vue'), + redirect: '/ai-platform/agent', }, { meta: { hideInMenu: true },