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
+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 },