nk-cli
Version:
Initialize a vite app fast by NK-CLI
29 lines (25 loc) • 590 B
text/typescript
import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';
const dashboard: AppRouteModule = {
path: '/dashboard',
name: 'Dashboard',
component: LAYOUT,
redirect: '/dashboard/workbench',
meta: {
orderNo: 10,
// icon: 'ion:grid-outline',
title: '首页',
hideChildrenInMenu: true,
},
children: [
{
path: 'workbench',
name: 'Workbench',
component: () => import('/@/views/dashboard/workbench/index.vue'),
meta: {
title: '工作台',
},
},
],
};
export default dashboard;