ruoyi-plus-vben5/apps/web-antd/src/router/routes/modules/dashboard.ts

39 lines
875 B
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',
path: '/',
children: [
{
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: 'Workspace',
path: '/workspace',
2024-06-23 23:18:55 +08:00
component: () => import('#/views/dashboard/workspace/index.vue'),
meta: {
2024-09-11 16:23:24 +08:00
icon: 'carbon:workspace',
2024-06-23 23:18:55 +08:00
title: $t('page.dashboard.workspace'),
},
},
],
},
];
export default routes;