Blame view

Yi.Vben5.Vue3/apps/web-antd/src/router/routes/modules/vben.ts 2.04 KB
515fceeb   “wangming”   框架初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
  import type { RouteRecordRaw } from 'vue-router';
  
  import {
    VBEN_DOC_URL,
    VBEN_ELE_PREVIEW_URL,
    VBEN_GITHUB_URL,
    VBEN_LOGO_URL,
    VBEN_NAIVE_PREVIEW_URL,
  } from '@vben/constants';
  
  import { IFrameView } from '#/layouts';
  import { $t } from '#/locales';
  
  const routes: RouteRecordRaw[] = [
    {
      meta: {
        badgeType: 'dot',
        icon: VBEN_LOGO_URL,
        order: 9998,
        title: $t('demos.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|offline',
            title: $t('demos.vben.about'),
          },
        },
        {
          name: 'VbenDocument',
          path: '/vben-admin/document',
          component: IFrameView,
          meta: {
            icon: 'lucide:book-open-text|offline',
            link: VBEN_DOC_URL,
            title: $t('demos.vben.document'),
          },
        },
        {
          name: 'VbenGithub',
          path: '/vben-admin/github',
          component: IFrameView,
          meta: {
            icon: 'mdi:github',
            link: VBEN_GITHUB_URL,
            title: 'Github',
          },
        },
        {
          name: 'VbenNaive',
          path: '/vben-admin/naive',
          component: IFrameView,
          meta: {
            badgeType: 'dot',
            icon: 'logos:naiveui',
            link: VBEN_NAIVE_PREVIEW_URL,
            title: $t('demos.vben.naive-ui'),
          },
        },
        {
          name: 'VbenElementPlus',
          path: '/vben-admin/ele',
          component: IFrameView,
          meta: {
            badgeType: 'dot',
            icon: 'logos:element',
            link: VBEN_ELE_PREVIEW_URL,
            title: $t('demos.vben.element-plus'),
          },
        },
      ],
    },
    {
      name: 'VbenAbout',
      path: '/vben-admin/about',
      component: () => import('#/views/_core/about/index.vue'),
      meta: {
        icon: 'lucide:copyright',
        title: $t('demos.vben.about'),
        order: 9999,
      },
    },
  ];
  
  export default routes;