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

55 lines
1.2 KiB
TypeScript
Raw Normal View History

import type { RouteRecordRaw } from 'vue-router';
2024-06-08 20:14:04 +08:00
import { VBEN_GITHUB_URL, VBEN_LOGO } from '@vben/constants';
2024-06-08 19:49:06 +08:00
import { BasicLayout, IFrameView } from '@/layouts';
import { $t } from '@vben/locales/helper';
const routes: RouteRecordRaw[] = [
{
2024-05-21 22:42:25 +08:00
component: BasicLayout,
meta: {
2024-06-08 20:14:04 +08:00
icon: VBEN_LOGO,
order: 9999,
2024-05-25 22:10:21 +08:00
title: 'Vben',
},
name: 'AboutLayout',
path: '/vben-admin',
redirect: '/vben-admin/about',
children: [
{
2024-06-08 20:14:04 +08:00
name: 'VbenAbout',
path: 'about',
2024-06-08 20:14:04 +08:00
component: () => import('@/views/_essential/vben/about/index.vue'),
meta: {
icon: 'mdi:creative-commons',
2024-06-08 20:14:04 +08:00
title: $t('page.vben.about'),
},
},
{
2024-06-08 20:14:04 +08:00
name: 'VbenDocument',
path: 'document',
2024-05-21 22:14:25 +08:00
component: IFrameView,
meta: {
icon: 'mdi:flame-circle',
2024-05-21 22:14:25 +08:00
iframeSrc: 'https://doc.vvbin.cn/',
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: 'github',
component: IFrameView,
meta: {
icon: 'mdi:github',
2024-06-08 20:14:04 +08:00
link: VBEN_GITHUB_URL,
title: 'Github',
},
},
],
},
];
export default routes;