Add lightweight AI admin dashboard

This commit is contained in:
2026-06-11 00:17:04 +08:00
parent e3352bf04c
commit a1b9ff5146
17 changed files with 866 additions and 599 deletions
+4 -3
View File
@@ -16,6 +16,7 @@ const forbiddenComponent = () => import('#/views/_core/fallback/forbidden.vue');
const lightMenuNames = new Set([
'AIAgent',
'AIKnowledgeDetail',
'AIModelConfig',
'AIPlatform',
'AIWorkflow',
'AIWorkflowRuns',
@@ -82,8 +83,8 @@ function normalizeBackendRoute<
if (route.name !== 'ControlCenter') return route;
const normalized = { ...route };
normalized.path = '/page-render/main_home';
normalized.component = 'online-dev/page-render/index';
normalized.path = '/dashboard';
normalized.component = 'dashboard/index';
normalized.query = undefined;
return normalized;
}
@@ -158,7 +159,7 @@ async function generateAccess(options: GenerateMenuAndRoutesOptions) {
'../views/ai-platform/workflow/editor/index.vue',
'../views/ai-platform/workflow/index.vue',
'../views/ai-platform/workflow-runs/index.vue',
'../views/online-dev/page-render/index.vue',
'../views/dashboard/index.vue',
]);
const layoutMap: ComponentRecordType = {