Blame view

src/router/routes/modules/home.ts 647 Bytes
vben authored
1
2
3
import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
4
import { t } from '/@/hooks/web/useI18n';
vben authored
5
6
7
8
9
10
11

const dashboard: AppRouteModule = {
  path: '/home',
  name: 'Home',
  component: LAYOUT,
  redirect: '/home/welcome',
  meta: {
12
    icon: 'ion:home-outline',
13
    title: t('routes.dashboard.welcome'),
vben authored
14
15
16
17
18
19
20
  },
  children: [
    {
      path: 'welcome',
      name: 'Welcome',
      component: () => import('/@/views/dashboard/welcome/index.vue'),
      meta: {
21
        title: t('routes.dashboard.welcome'),
vben authored
22
        affix: true,
陈小婷 authored
23
        icon: 'bx:bx-home',
vben authored
24
25
26
27
28
29
      },
    },
  ],
};

export default dashboard;