vue-vben-admin/src/router/routes/modules/home.ts

29 lines
593 B
TypeScript
Raw Normal View History

2020-12-03 21:49:32 +08:00
import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';
const dashboard: AppRouteModule = {
path: '/home',
name: 'Home',
component: LAYOUT,
redirect: '/home/welcome',
meta: {
2020-12-08 00:22:55 +08:00
icon: 'bx:bx-home',
2020-12-03 21:49:32 +08:00
title: 'routes.dashboard.welcome',
},
children: [
{
path: 'welcome',
name: 'Welcome',
component: () => import('/@/views/dashboard/welcome/index.vue'),
meta: {
title: 'routes.dashboard.welcome',
affix: true,
2020-12-08 00:22:55 +08:00
icon: 'bx:bx-home',
2020-12-03 21:49:32 +08:00
},
},
],
};
export default dashboard;