Blame view

src/router/routes/modules/project/dashboard.ts 957 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';
5
import { RoleEnum } from '/@/enums/roleEnum';
陈文彬 authored
6
7
const dashboard: AppRouteModule = {
sanmu authored
8
9
  path: '/home',
  name: 'Analysis',
vben authored
10
  component: LAYOUT,
sanmu authored
11
  redirect: '/home',
vben authored
12
  meta: {
13
14
    roles: [RoleEnum.ADMIN, RoleEnum.DATA_REPORT_USER],
sanmu authored
15
16
    hideChildrenInMenu: true,
    orderNo: 1,
17
    icon: 'ion:grid-outline',
18
    title: '报表分析',
陈文彬 authored
19
  },
vben authored
20
  children: [
21
    {
sanmu authored
22
      path: '',
23
24
25
      name: 'Analysis',
      component: () => import('/@/views/dashboard/analysis/index.vue'),
      meta: {
26
        // affix: true,
sanmu authored
27
        title: '首页',
28
29
      },
    },
sanmu authored
30
31
32
33
34
35
36
37
    // {
    //   path: 'workbench',
    //   name: 'Workbench',
    //   component: () => import('/@/views/dashboard/workbench/index.vue'),
    //   meta: {
    //     title: t('routes.dashboard.workbench'),
    //   },
    // },
陈文彬 authored
38
  ],
39
40
41
};

export default dashboard;