fix: restore dashboard runtime home
This commit is contained in:
@@ -32,10 +32,12 @@ const baseModules = import.meta.glob([
|
|||||||
const businessModules = import.meta.glob([
|
const businessModules = import.meta.glob([
|
||||||
'./langs/zh-CN/ai-platform.json',
|
'./langs/zh-CN/ai-platform.json',
|
||||||
'./langs/zh-CN/announcement.json',
|
'./langs/zh-CN/announcement.json',
|
||||||
|
'./langs/zh-CN/dashboard-design.json',
|
||||||
'./langs/zh-CN/menu.json',
|
'./langs/zh-CN/menu.json',
|
||||||
'./langs/zh-CN/message.json',
|
'./langs/zh-CN/message.json',
|
||||||
'./langs/zh-CN/permission.json',
|
'./langs/zh-CN/permission.json',
|
||||||
'./langs/zh-CN/role.json',
|
'./langs/zh-CN/role.json',
|
||||||
|
'./langs/zh-CN/system-config.json',
|
||||||
'./langs/zh-CN/system.json',
|
'./langs/zh-CN/system.json',
|
||||||
'./langs/zh-CN/user.json',
|
'./langs/zh-CN/user.json',
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
"codex": "Codex",
|
"codex": "Codex",
|
||||||
"startChat": "开始聊天",
|
"startChat": "开始聊天",
|
||||||
"systemManagement": "系统管理",
|
"systemManagement": "系统管理",
|
||||||
|
"applicationManagement": "应用管理",
|
||||||
|
"systemMonitoring": "系统监控",
|
||||||
"userManagement": "用户管理",
|
"userManagement": "用户管理",
|
||||||
"roleManagement": "角色权限",
|
"roleManagement": "角色权限",
|
||||||
"permissionManagement": "API管理",
|
"permissionManagement": "API管理",
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ function normalizeBackendRoute<
|
|||||||
|
|
||||||
const normalized = { ...route };
|
const normalized = { ...route };
|
||||||
normalized.path = '/page-render/main_home';
|
normalized.path = '/page-render/main_home';
|
||||||
normalized.component = 'control-center/index';
|
normalized.component = 'online-dev/page-render/index';
|
||||||
normalized.query = undefined;
|
normalized.query = undefined;
|
||||||
return normalized;
|
return normalized;
|
||||||
}
|
}
|
||||||
@@ -152,7 +152,7 @@ async function generateAccess(options: GenerateMenuAndRoutesOptions) {
|
|||||||
'../views/ai-platform/workflow/editor/index.vue',
|
'../views/ai-platform/workflow/editor/index.vue',
|
||||||
'../views/ai-platform/workflow/index.vue',
|
'../views/ai-platform/workflow/index.vue',
|
||||||
'../views/ai-platform/workflow-runs/index.vue',
|
'../views/ai-platform/workflow-runs/index.vue',
|
||||||
'../views/control-center/index.vue',
|
'../views/online-dev/page-render/index.vue',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const layoutMap: ComponentRecordType = {
|
const layoutMap: ComponentRecordType = {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { preferences } from '@vben/preferences';
|
import { preferences } from '@vben/preferences';
|
||||||
|
|
||||||
const LEGACY_HOME_PATTERNS = [
|
const LEGACY_HOME_PATTERNS = [
|
||||||
/^\/page-render\/main_home$/,
|
|
||||||
/^\/app\/[^/]+\/form-render\//,
|
/^\/app\/[^/]+\/form-render\//,
|
||||||
/^\/form-render\//,
|
/^\/form-render\//,
|
||||||
/^\/online-dev(?:\/|$)/,
|
/^\/online-dev(?:\/|$)/,
|
||||||
|
|||||||
@@ -92,37 +92,27 @@ const BadgeVariants = [
|
|||||||
'outline',
|
'outline',
|
||||||
];
|
];
|
||||||
|
|
||||||
const componentKeys: string[] = Object.keys(
|
const componentKeys = [
|
||||||
import.meta.glob([
|
'/_core/agent-chat/index',
|
||||||
'../../../_core/agent-chat/**/*.vue',
|
'/_core/announcement/index',
|
||||||
'../../../_core/announcement/index.vue',
|
'/_core/announcement/list',
|
||||||
'../../../_core/announcement/list.vue',
|
'/_core/authentication/login',
|
||||||
'../../../_core/authentication/login.vue',
|
'/_core/authentication/oauth-callback',
|
||||||
'../../../_core/authentication/oauth-callback.vue',
|
'/_core/fallback/forbidden',
|
||||||
'../../../_core/fallback/**/*.vue',
|
'/_core/fallback/not-found',
|
||||||
'../../../_core/menu/index.vue',
|
'/_core/menu/index',
|
||||||
'../../../_core/permission/index.vue',
|
'/_core/message/index',
|
||||||
'../../../_core/role/index.vue',
|
'/_core/permission/index',
|
||||||
'../../../_core/user/index.vue',
|
'/_core/role/index',
|
||||||
'../../../ai-platform/agent/editor/index.vue',
|
'/_core/user/index',
|
||||||
'../../../ai-platform/agent/index.vue',
|
'/ai-platform/agent/index',
|
||||||
'../../../ai-platform/knowledge/detail/index.vue',
|
'/ai-platform/knowledge/detail/index',
|
||||||
'../../../ai-platform/knowledge/index.vue',
|
'/ai-platform/knowledge/index',
|
||||||
'../../../ai-platform/model/index.vue',
|
'/ai-platform/model/index',
|
||||||
'../../../ai-platform/workflow/editor/index.vue',
|
'/ai-platform/workflow/index',
|
||||||
'../../../ai-platform/workflow/index.vue',
|
'/ai-platform/workflow-runs/index',
|
||||||
'../../../ai-platform/workflow-runs/index.vue',
|
'/online-dev/page-render/index',
|
||||||
'../../../online-dev/page-render/index.vue',
|
];
|
||||||
]),
|
|
||||||
)
|
|
||||||
.filter((item) => !item.includes('/modules/'))
|
|
||||||
.map((v) => {
|
|
||||||
const path = v
|
|
||||||
.replace('../../../_core/', '/_core/')
|
|
||||||
.replace('../../../ai-platform/', '/ai-platform/')
|
|
||||||
.replace('../../../online-dev/', '/online-dev/');
|
|
||||||
return path.endsWith('.vue') ? path.slice(0, -4) : path;
|
|
||||||
});
|
|
||||||
|
|
||||||
function getFormSchema(
|
function getFormSchema(
|
||||||
getCurrentMenuId: () => string | undefined,
|
getCurrentMenuId: () => string | undefined,
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user