Files
aiot-platform-ui/apps/web-antd/src/router/routes/modules/dashboard.ts

49 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-06-23 23:18:55 +08:00
import type { RouteRecordRaw } from 'vue-router';
import { $t } from '#/locales';
2024-06-23 23:18:55 +08:00
const routes: RouteRecordRaw[] = [
{
meta: {
icon: 'lucide:layout-dashboard',
2024-06-23 23:18:55 +08:00
order: -1,
title: $t('page.dashboard.title'),
},
name: 'Dashboard',
2025-01-15 19:24:02 +08:00
path: '/dashboard',
2024-06-23 23:18:55 +08:00
children: [
{
name: 'Workspace',
path: '/workspace',
component: () => import('#/views/dashboard/workspace/index.vue'),
meta: {
icon: 'carbon:workspace',
title: $t('page.dashboard.workspace'),
},
},
2024-06-23 23:18:55 +08:00
{
name: 'Analytics',
path: '/analytics',
2024-06-23 23:18:55 +08:00
component: () => import('#/views/dashboard/analytics/index.vue'),
meta: {
affixTab: true,
icon: 'lucide:area-chart',
2024-06-23 23:18:55 +08:00
title: $t('page.dashboard.analytics'),
},
},
],
},
{
name: 'Profile',
path: '/profile',
component: () => import('#/views/_core/profile/index.vue'),
meta: {
icon: 'ant-design:profile-outlined',
title: $t('ui.widgets.profile'),
hideInMenu: true,
},
},
2024-06-23 23:18:55 +08:00
];
export default routes;