fix: route default home to agents

This commit is contained in:
2026-06-13 16:40:10 +08:00
parent fd8ae962f8
commit 4e551df5e4
4 changed files with 7 additions and 9 deletions
+4 -4
View File
@@ -7038,9 +7038,9 @@
"name": "ControlCenter", "name": "ControlCenter",
"title": "menu-title.controlCenter", "title": "menu-title.controlCenter",
"authCode": null, "authCode": null,
"path": "/page-render/main_home", "path": "/ai-platform/agent",
"type": "menu", "type": "menu",
"component": "online-dev/page-render/index", "component": "/ai-platform/agent/index",
"redirect": null, "redirect": null,
"activePath": null, "activePath": null,
"query": null, "query": null,
@@ -9386,7 +9386,7 @@
"fields": { "fields": {
"application_id": "23CFVEUHdZcOQyku1mbIO", "application_id": "23CFVEUHdZcOQyku1mbIO",
"config_key": "frontend_preferences", "config_key": "frontend_preferences",
"config_value": "{\"app\":{\"defaultHomePath\":\"/page-render/main_home\"}}", "config_value": "{\"app\":{\"defaultHomePath\":\"/ai-platform/agent\"}}",
"config_type": "preferences", "config_type": "preferences",
"description": "子应用UI偏好配置", "description": "子应用UI偏好配置",
"status": true, "status": true,
@@ -9406,7 +9406,7 @@
"fields": { "fields": {
"application_id": "uRFPsrZ0BSJodp-qesFq6", "application_id": "uRFPsrZ0BSJodp-qesFq6",
"config_key": "frontend_preferences", "config_key": "frontend_preferences",
"config_value": "{\"app\":{\"defaultHomePath\":\"/page-render/main_home\"}}", "config_value": "{\"app\":{\"defaultHomePath\":\"/ai-platform/agent\"}}",
"config_type": "preferences", "config_type": "preferences",
"description": "子应用UI偏好配置", "description": "子应用UI偏好配置",
"status": true, "status": true,
+1 -1
View File
@@ -16,7 +16,7 @@ export const overridesPreferences = defineOverridesPreferences({
enablePreferences: false, enablePreferences: false,
accessMode: 'mixed', accessMode: 'mixed',
authPageLayout: 'panel-center', authPageLayout: 'panel-center',
defaultHomePath: '/page-render/main_home', defaultHomePath: '/ai-platform/agent',
layout: 'header-sidebar-nav', layout: 'header-sidebar-nav',
preferencesButtonPosition: 'header', preferencesButtonPosition: 'header',
}, },
@@ -9,7 +9,6 @@ export const LIGHT_MENU_NAMES = new Set([
'AnnouncementManage', 'AnnouncementManage',
'CodexAgentChat', 'CodexAgentChat',
'KnowledgeBase', 'KnowledgeBase',
'PageRenderMainHome',
'SystemManagement', 'SystemManagement',
'SystemMenu', 'SystemMenu',
'SystemPermission', 'SystemPermission',
@@ -26,7 +25,6 @@ const LIGHT_ROUTE_PATH_PREFIXES = [
'/ai-platform/workflow-runs', '/ai-platform/workflow-runs',
'/agent-chat', '/agent-chat',
'/message/announcement', '/message/announcement',
'/page-render/main_home',
'/system/menu', '/system/menu',
'/system/new-permission', '/system/new-permission',
'/system/role', '/system/role',
@@ -5,7 +5,7 @@ const routes: RouteRecordRaw[] = [
meta: { hideInMenu: true }, meta: { hideInMenu: true },
name: 'ControlCenterLegacyRedirect', name: 'ControlCenterLegacyRedirect',
path: '/control-center', path: '/control-center',
redirect: '/page-render/main_home', redirect: '/ai-platform/agent',
}, },
{ {
meta: { meta: {
@@ -14,7 +14,7 @@ const routes: RouteRecordRaw[] = [
}, },
name: 'PageRenderMainHome', name: 'PageRenderMainHome',
path: '/page-render/main_home', path: '/page-render/main_home',
component: () => import('#/views/_core/page-render/index.vue'), redirect: '/ai-platform/agent',
}, },
{ {
meta: { hideInMenu: true }, meta: { hideInMenu: true },