| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- import type { RouteRecordRaw } from 'vue-router';
- import { BasicLayout, IFrameView } from '@/layouts';
- import { VBEN_GITHUB_URL } from '@vben/constants';
- import { $t } from '@vben/locales/helper';
- import { preference } from '@vben/preference';
- export const vbenRoutes: RouteRecordRaw[] = [
- {
- component: BasicLayout,
- 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',
- component: IFrameView,
- meta: {
- icon: 'mdi:flame-circle',
- iframeSrc: 'https://doc.vvbin.cn/',
- keepAlive: true,
- title: $t('page.document'),
- },
- },
- {
- name: 'Github',
- path: 'github',
- component: IFrameView,
- meta: {
- icon: 'mdi:github',
- target: VBEN_GITHUB_URL,
- title: 'Github',
- },
- },
- ],
- },
- ];
|