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

49 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-03-01 10:49:34 +08:00
/*
* @Author:
* @Date: 2024-01-13 13:04:15
* @LastEditors: Do not edit
* @LastEditTime: 2024-03-01 14:24:28
2024-03-01 10:49:34 +08:00
* @Description:
*/
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'),
},
},
2024-03-01 10:49:34 +08:00
{
path: 'scheme_preview/:id',
name: 'AccountDetail',
meta: {
hideMenu: true,
title: t('routes.demo.workflow.scheme_preview'),
ignoreKeepAlive: true,
showMenu: false,
currentActiveMenu: '/workflow/scheme',
},
component: () => import('@/views/demo/workflow/scheme/preview.vue'),
},
2024-01-13 10:56:48 +08:00
],
};
export default dashboard;