ruoyi-plus-vben5/apps/web-antd/src/router/routes/local.ts

103 lines
2.1 KiB
TypeScript
Raw Normal View History

2024-09-02 15:13:17 +08:00
import type { RouteRecordStringComponent } from '@vben/types';
import { $t } from '@vben/locales';
/**
*
*/
/**
*
*/
const profileRoute: RouteRecordStringComponent[] = [
{
component: 'BasicLayout',
meta: {
hideChildrenInMenu: true,
hideInMenu: true,
title: $t('widgets.profile'),
},
name: 'Profile',
path: '',
children: [
{
component: '/_core/profile/index',
meta: {
icon: 'mingcute:profile-line',
title: $t('widgets.profile'),
},
name: 'ProfileIndex',
path: '/profile',
},
],
},
];
/**
*
*/
export const localMenuList: RouteRecordStringComponent[] = [
{
component: 'BasicLayout',
meta: {
order: -1,
title: 'page.dashboard.title',
},
name: 'Dashboard',
path: '/',
redirect: '/analytics',
children: [
{
name: 'Analytics',
path: '/analytics',
component: '/dashboard/analytics/index',
meta: {
affixTab: true,
title: 'page.dashboard.analytics',
},
},
{
name: 'Workspace',
path: '/workspace',
component: '/dashboard/workspace/index',
meta: {
title: 'page.dashboard.workspace',
},
},
{
name: 'VbenDocument',
path: '/vben-admin/document',
component: 'IFrameView',
meta: {
icon: 'lucide:book-open-text',
iframeSrc: 'https://dapdap.top',
keepAlive: true,
title: $t('page.vben.document'),
},
},
],
},
{
component: 'BasicLayout',
meta: {
hideChildrenInMenu: true,
icon: 'lucide:copyright',
order: 9999,
title: $t('page.vben.about'),
},
name: 'About',
path: '/about',
children: [
{
component: '/_core/about/index',
meta: {
title: $t('page.vben.about'),
},
name: 'VbenAbout',
path: '/vben-admin/about',
},
],
},
...profileRoute,
];