Blame view

src/router/routes/modules/dashboard.ts 848 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,
Vben authored
10
  redirect: '/dashboard/analysis',
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: 'analysis',
18
19
20
      name: 'Analysis',
      component: () => import('/@/views/dashboard/analysis/index.vue'),
      meta: {
Vben authored
21
        affix: true,
22
        title: t('routes.dashboard.analysis'),
23
24
      },
    },
25
26
27
28
29
30
31
32
    {
      path: 'workbench',
      name: 'Workbench',
      component: () => import('/@/views/dashboard/workbench/index.vue'),
      meta: {
        title: t('routes.dashboard.workbench'),
      },
    },
陈文彬 authored
33
  ],
34
35
36
};

export default dashboard;