routes.ts 883 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. export default [
  2. {
  3. path: '/user',
  4. layout: false,
  5. routes: [
  6. {
  7. path: '/user',
  8. routes: [
  9. {
  10. name: 'login',
  11. path: '/user/login',
  12. component: './user/Login'
  13. }
  14. ]
  15. }
  16. ]
  17. },
  18. {
  19. path: '/',
  20. redirect: '/welcome'
  21. },
  22. {
  23. path: '/welcome',
  24. name: 'welcome',
  25. icon: 'HomeOutlined',
  26. component: './Welcome'
  27. },
  28. {
  29. path: '/role',
  30. name: 'role',
  31. icon: 'UserOutlined',
  32. routes: [
  33. {
  34. path: '/role',
  35. redirect: '/role/system'
  36. },
  37. {
  38. path: '/role/system',
  39. name: 'system',
  40. component: './Role/System',
  41. access: 'authRouteFilter'
  42. },
  43. {
  44. path: '/role/customer',
  45. name: 'customer',
  46. component: './Role/Customer',
  47. access: 'authRouteFilter'
  48. }
  49. ]
  50. }
  51. ]