Blame view

src/router/routes/modules/dashboard.ts 868 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
    orderNo: 10,
13
    icon: 'ion:grid-outline',
14
    title: t('routes.dashboard.dashboard'),
陈文彬 authored
15
  },
vben authored
16
  children: [
17
    {
vben authored
18
      path: 'analysis',
19
20
21
      name: 'Analysis',
      component: () => import('/@/views/dashboard/analysis/index.vue'),
      meta: {
22
        // affix: true,
23
        title: t('routes.dashboard.analysis'),
24
25
      },
    },
26
27
28
29
30
31
32
33
    {
      path: 'workbench',
      name: 'Workbench',
      component: () => import('/@/views/dashboard/workbench/index.vue'),
      meta: {
        title: t('routes.dashboard.workbench'),
      },
    },
陈文彬 authored
34
  ],
35
36
37
};

export default dashboard;