2024-05-21 21:45:48 +08:00
|
|
|
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
|
|
|
|
import { VBEN_GITHUB_URL } from '@vben/constants';
|
|
|
|
import { $t } from '@vben/locales/helper';
|
|
|
|
import { preference } from '@vben/preference';
|
|
|
|
|
|
|
|
import { IFrameView, Layout } from '@/router/routes/layout';
|
|
|
|
|
|
|
|
export const vbenRoutes: RouteRecordRaw[] = [
|
|
|
|
{
|
|
|
|
component: Layout,
|
|
|
|
meta: {
|
|
|
|
icon: preference.logo,
|
|
|
|
title: 'Vben Admin',
|
|
|
|
},
|
|
|
|
name: 'AboutLayout',
|
|
|
|
path: '/vben-admin',
|
|
|
|
redirect: '/vben-admin/about',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
name: 'About',
|
|
|
|
path: 'about',
|
|
|
|
component: () => import('@/views/about/index.vue'),
|
|
|
|
meta: {
|
|
|
|
icon: 'mdi:creative-commons',
|
|
|
|
title: $t('page.about'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'AboutDocument',
|
|
|
|
path: 'document',
|
2024-05-21 22:14:25 +08:00
|
|
|
component: IFrameView,
|
2024-05-21 21:45:48 +08:00
|
|
|
meta: {
|
|
|
|
icon: 'mdi:flame-circle',
|
2024-05-21 22:14:25 +08:00
|
|
|
iframeSrc: 'https://doc.vvbin.cn/',
|
|
|
|
keepAlive: true,
|
2024-05-21 21:45:48 +08:00
|
|
|
title: $t('page.document'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Github',
|
|
|
|
path: 'github',
|
|
|
|
component: IFrameView,
|
|
|
|
meta: {
|
|
|
|
icon: 'mdi:github',
|
|
|
|
target: VBEN_GITHUB_URL,
|
|
|
|
title: 'Github',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|