create-iking-admin
Version:
金合技术中台脚手架
47 lines (43 loc) • 1.11 kB
text/typescript
/*
* @Author: wfl
* @LastEditors: wfl
* @description:
* @updateInfo:
* @Date: 2022-07-29 11:45:14
* @LastEditTime: 2022-08-15 14:55:26
*/
import type { AppRouteModule } from '@/mainApp/router/types';
import { t } from '@/global/hooks/web/useI18n';
import { LAYOUT } from '@/mainApp/router/constant';
const dashboard: AppRouteModule = {
path: '/dashboard',
name: 'Dashboard',
component: LAYOUT,
redirect: '/dashboard/analysis',
meta: {
orderNo: 10,
icon: 'ion:grid-outline',
title: t('routes.dashboard.dashboard'),
},
children: [
{
path: 'analysis',
name: 'Analysis',
component: () => import('@/mainApp/views/dashboard/analysis/index.vue'),
meta: {
affix: false,
title: t('routes.dashboard.analysis'),
},
},
{
path: 'workbench',
name: 'Workbench',
component: () => import('@/mainApp/views/dashboard/workbench/index.vue'),
meta: {
affix: false,
title: t('routes.dashboard.workbench'),
},
},
],
};
export default dashboard;