2024-01-13 10:56:48 +08:00
|
|
|
import type { AppRouteModule } from '@/router/types';
|
|
|
|
|
|
|
|
|
|
import { LAYOUT } from '@/router/constant';
|
|
|
|
|
import { t } from '@/hooks/web/useI18n';
|
|
|
|
|
|
|
|
|
|
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: [
|
|
|
|
|
{
|
2024-02-07 09:24:07 +08:00
|
|
|
path: '/dashboard/analysis',
|
2024-01-13 10:56:48 +08:00
|
|
|
name: 'Analysis',
|
|
|
|
|
component: () => import('@/views/dashboard/analysis/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
// affix: true,
|
|
|
|
|
title: t('routes.dashboard.analysis'),
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default dashboard;
|