auth-demo.tsx 733 B

1234567891011121314151617181920212223242526272829303132333435
  1. const authDemo: AuthRoute.Route = {
  2. name: 'auth-demo',
  3. path: '/auth-demo',
  4. component: 'basic',
  5. children: [
  6. {
  7. name: 'auth-demo_permission',
  8. path: '/auth-demo/permission',
  9. component: 'self',
  10. meta: {
  11. title: '权限切换',
  12. requiresAuth: true,
  13. icon: 'ic:round-construction'
  14. }
  15. },
  16. {
  17. name: 'auth-demo_super',
  18. path: '/auth-demo/super',
  19. component: 'self',
  20. meta: {
  21. title: '超级管理员可见',
  22. requiresAuth: true,
  23. permissions: ['super'],
  24. icon: 'ic:round-supervisor-account'
  25. }
  26. }
  27. ],
  28. meta: {
  29. title: '权限示例',
  30. icon: 'ic:baseline-security',
  31. order: 5
  32. }
  33. };
  34. export default authDemo;