1234567891011121314151617181920212223242526272829303132333435 |
- const authDemo: AuthRoute.Route = {
- name: 'auth-demo',
- path: '/auth-demo',
- component: 'basic',
- children: [
- {
- name: 'auth-demo_permission',
- path: '/auth-demo/permission',
- component: 'self',
- meta: {
- title: '权限切换',
- requiresAuth: true,
- icon: 'ic:round-construction'
- }
- },
- {
- name: 'auth-demo_super',
- path: '/auth-demo/super',
- component: 'self',
- meta: {
- title: '超级管理员可见',
- requiresAuth: true,
- permissions: ['super'],
- icon: 'ic:round-supervisor-account'
- }
- }
- ],
- meta: {
- title: '权限示例',
- icon: 'ic:baseline-security',
- order: 5
- }
- };
- export default authDemo;
|