Blame view

src/router/menus/modules/demo/permission.ts 1.14 KB
1
import type { MenuModule } from '/@/router/types';
2
import { t } from '/@/hooks/web/useI18n';
vben authored
3
陈文彬 authored
4
const menu: MenuModule = {
vben authored
5
  orderNo: 15,
陈文彬 authored
6
  menu: {
7
    name: t('routes.demo.permission.permission'),
陈文彬 authored
8
9
10
    path: '/permission',
    children: [
      {
vben authored
11
        path: 'front',
12
        name: t('routes.demo.permission.front'),
陈文彬 authored
13
14
        children: [
          {
vben authored
15
            path: 'page',
16
            name: t('routes.demo.permission.frontPage'),
陈文彬 authored
17
18
          },
          {
vben authored
19
            path: 'btn',
20
            name: t('routes.demo.permission.frontBtn'),
陈文彬 authored
21
22
          },
          {
vben authored
23
            path: 'auth-pageA',
24
            name: t('routes.demo.permission.frontTestA'),
陈文彬 authored
25
26
          },
          {
vben authored
27
            path: 'auth-pageB',
28
            name: t('routes.demo.permission.frontTestB'),
陈文彬 authored
29
30
31
32
          },
        ],
      },
      {
vben authored
33
        path: 'back',
34
        name: t('routes.demo.permission.back'),
陈文彬 authored
35
36
        children: [
          {
vben authored
37
            path: 'page',
38
            name: t('routes.demo.permission.backPage'),
陈文彬 authored
39
40
          },
          {
vben authored
41
            path: 'btn',
42
            name: t('routes.demo.permission.backBtn'),
陈文彬 authored
43
44
45
46
47
48
49
          },
        ],
      },
    ],
  },
};
export default menu;