Blame view

src/router/routes/modules/dashboard.ts 828 Bytes
陈文彬 authored
1
2
import type { AppRouteModule } from '/@/router/types';
vben authored
3
import { LAYOUT } from '/@/router/constant';
4
import { t } from '/@/hooks/web/useI18n';
陈文彬 authored
5
6
const dashboard: AppRouteModule = {
vben authored
7
8
9
  path: '/dashboard',
  name: 'Dashboard',
  component: LAYOUT,
10
  redirect: '/dashboard/workbench',
vben authored
11
  meta: {
12
    icon: 'ion:grid-outline',
13
    title: t('routes.dashboard.dashboard'),
陈文彬 authored
14
  },
vben authored
15
  children: [
16
    {
vben authored
17
      path: 'workbench',
18
19
20
      name: 'Workbench',
      component: () => import('/@/views/dashboard/workbench/index.vue'),
      meta: {
21
        title: t('routes.dashboard.workbench'),
陈文彬 authored
22
23
      },
    },
24
    {
vben authored
25
      path: 'analysis',
26
27
28
      name: 'Analysis',
      component: () => import('/@/views/dashboard/analysis/index.vue'),
      meta: {
29
        title: t('routes.dashboard.analysis'),
30
31
      },
    },
陈文彬 authored
32
  ],
33
34
35
};

export default dashboard;