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",
"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,
+1 -1
View File
@@ -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',
},
@@ -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',
@@ -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 },