fix: route default home to agents
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user