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

80 lines
1.8 KiB
TypeScript
Raw Normal View History

import type { RouteRecordRaw } from 'vue-router';
2024-08-01 00:01:39 +08:00
import {
VBEN_ANT_PREVIEW_URL,
2024-08-01 00:01:39 +08:00
VBEN_DOC_URL,
VBEN_GITHUB_URL,
VBEN_LOGO_URL,
VBEN_NAIVE_PREVIEW_URL,
} from '@vben/constants';
import { BasicLayout, IFrameView } from '#/layouts';
import { $t } from '#/locales';
const routes: RouteRecordRaw[] = [
{
component: BasicLayout,
meta: {
badgeType: 'dot',
icon: VBEN_LOGO_URL,
order: 9999,
title: $t('page.vben.title'),
},
name: 'VbenProject',
path: '/vben-admin',
children: [
{
name: 'VbenAbout',
path: '/vben-admin/about',
component: () => import('#/views/_core/about/index.vue'),
meta: {
icon: 'lucide:copyright',
title: $t('page.vben.about'),
},
},
{
name: 'VbenDocument',
path: '/vben-admin/document',
component: IFrameView,
meta: {
icon: 'lucide:book-open-text',
link: VBEN_DOC_URL,
title: $t('page.vben.document'),
},
},
{
name: 'VbenGithub',
path: '/vben-admin/github',
component: IFrameView,
meta: {
icon: 'mdi:github',
link: VBEN_GITHUB_URL,
title: 'Github',
},
},
2024-08-01 00:01:39 +08:00
{
name: 'VbenNaive',
path: '/vben-admin/naive',
component: IFrameView,
meta: {
badgeType: 'dot',
link: VBEN_NAIVE_PREVIEW_URL,
2024-08-01 12:53:02 +08:00
title: $t('page.vben.naive-ui'),
2024-08-01 00:01:39 +08:00
},
},
{
name: 'VbenAntd',
2024-08-01 00:06:36 +08:00
path: '/vben-admin/antd',
2024-08-01 00:01:39 +08:00
component: IFrameView,
meta: {
badgeType: 'dot',
link: VBEN_ANT_PREVIEW_URL,
2024-08-01 12:53:02 +08:00
title: $t('page.vben.antdv'),
2024-08-01 00:01:39 +08:00
},
},
],
},
];
export default routes;