Files
admin-vben5/apps/web-antd/src/router/routes/local.ts

53 lines
1.1 KiB
TypeScript
Raw Normal View History

2025-06-18 11:03:42 +08:00
import type { RouteRecordStringComponent } from '@vben/types';
import { $t } from '@vben/locales';
const {
version,
// vite inject-metadata 插件注入的全局变量
} = __VBEN_ADMIN_METADATA__ || {};
/**
*
*
*/
const localRoutes: RouteRecordStringComponent[] = [
{
component: '/_core/profile/index',
meta: {
icon: 'mingcute:profile-line',
title: $t('ui.widgets.profile'),
hideInMenu: true,
requireHomeRedirect: true,
},
name: 'Profile',
path: '/profile',
},
];
/**
*
*/
export const localMenuList: RouteRecordStringComponent[] = [
{
2025-07-14 16:04:52 +08:00
name: 'Analytics',
path: '/analytics',
component: '/dashboard/analytics/index',
2025-06-18 11:03:42 +08:00
meta: {
2025-07-14 16:04:52 +08:00
affixTab: true,
title: '首页',
2025-06-18 11:03:42 +08:00
},
},
// {
// component: '/_core/about/index',
// meta: {
// icon: 'lucide:copyright',
// order: 9999,
// title: $t('demos.vben.about'),
// },
// name: 'About',
// path: '/vben-admin/about',
// },
2025-06-18 11:03:42 +08:00
...localRoutes,
];