feat: add lightweight admin workspace

This commit is contained in:
2026-06-21 17:48:43 +08:00
parent 56c1eec051
commit f9050c95d1
13 changed files with 603 additions and 16 deletions
@@ -5,7 +5,7 @@ const routes: RouteRecordRaw[] = [
meta: { hideInMenu: true },
name: 'ControlCenterLegacyRedirect',
path: '/control-center',
redirect: '/ai-platform/agent',
redirect: '/dashboard/workspace',
},
{
meta: {
@@ -14,7 +14,7 @@ const routes: RouteRecordRaw[] = [
},
name: 'PageRenderMainHome',
path: '/page-render/main_home',
redirect: '/ai-platform/agent',
redirect: '/dashboard/workspace',
},
{
meta: { hideInMenu: true },
@@ -0,0 +1,28 @@
import type { RouteRecordRaw } from 'vue-router';
const routes: RouteRecordRaw[] = [
{
meta: {
hideInMenu: true,
icon: 'lucide:layout-dashboard',
order: 0,
title: 'menu-title.controlCenter',
},
name: 'Dashboard',
path: '/dashboard',
redirect: '/dashboard/workspace',
children: [
{
component: () => import('#/views/dashboard/workspace/index.vue'),
meta: {
hideInMenu: true,
title: 'menu-title.workspace',
},
name: 'DashboardWorkspace',
path: '/dashboard/workspace',
},
],
},
];
export default routes;