Blame view

src/router/routes/modules/dashboard.ts 999 Bytes
陈文彬 authored
1
2
3
4
import type { AppRouteModule } from '/@/router/types';

import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
5
const dashboard: AppRouteModule = {
陈文彬 authored
6
7
8
9
  layout: {
    path: '/dashboard',
    name: 'Dashboard',
    component: PAGE_LAYOUT_COMPONENT,
10
    redirect: '/dashboard/workbench',
陈文彬 authored
11
12
13
14
15
16
17
18
19
20
21
22
    meta: {
      icon: 'ant-design:home-outlined',
      title: 'Dashboard',
    },
  },

  routes: [
    {
      path: '/welcome',
      name: 'Welcome',
      component: () => import('/@/views/dashboard/welcome/index.vue'),
      meta: {
23
24
25
26
27
28
29
30
31
        title: '首页',
      },
    },
    {
      path: '/workbench',
      name: 'Workbench',
      component: () => import('/@/views/dashboard/workbench/index.vue'),
      meta: {
        title: '工作台',
陈文彬 authored
32
33
34
        affix: true,
      },
    },
35
36
37
38
39
40
41
42
    {
      path: '/analysis',
      name: 'Analysis',
      component: () => import('/@/views/dashboard/analysis/index.vue'),
      meta: {
        title: '分析页',
      },
    },
陈文彬 authored
43
  ],
44
45
46
};

export default dashboard;