admin-vben5/apps/web-antd/src/router/routes/modules/vben.ts

58 lines
1.4 KiB
TypeScript
Raw Normal View History

import type { RouteRecordRaw } from 'vue-router';
import { VBEN_DOC_URL, VBEN_GITHUB_URL, VBEN_LOGO_URL } from '@vben/constants';
2024-06-08 19:49:06 +08:00
2024-06-16 23:40:52 +08:00
import { BasicLayout, IFrameView } from '#/layouts';
import { $t } from '#/locales';
2024-06-16 23:40:52 +08:00
const routes: RouteRecordRaw[] = [
{
2024-05-21 22:42:25 +08:00
component: BasicLayout,
meta: {
2024-06-29 15:41:10 +08:00
badgeType: 'dot',
badgeVariants: 'destructive',
icon: VBEN_LOGO_URL,
2024-06-08 20:14:04 +08:00
order: 9999,
title: $t('page.vben.title'),
},
name: 'VbenProject',
path: '/vben-admin',
children: [
{
2024-06-08 20:14:04 +08:00
name: 'VbenAbout',
path: '/vben-admin/about',
component: () => import('#/views/_core/vben/about/index.vue'),
meta: {
2024-06-29 15:41:10 +08:00
badgeType: 'dot',
badgeVariants: 'destructive',
icon: 'lucide:copyright',
2024-06-08 20:14:04 +08:00
title: $t('page.vben.about'),
},
},
{
2024-06-08 20:14:04 +08:00
name: 'VbenDocument',
path: '/vben-admin/document',
2024-05-21 22:14:25 +08:00
component: IFrameView,
meta: {
icon: 'lucide:book-open-text',
iframeSrc: VBEN_DOC_URL,
2024-05-21 22:14:25 +08:00
keepAlive: true,
2024-06-08 20:14:04 +08:00
title: $t('page.vben.document'),
},
},
{
2024-06-08 20:14:04 +08:00
name: 'VbenGithub',
path: '/vben-admin/github',
component: IFrameView,
meta: {
icon: 'mdi:github',
2024-06-08 20:14:04 +08:00
link: VBEN_GITHUB_URL,
title: 'Github',
},
},
],
},
];
export default routes;