routerConfig.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. export const routerConfig = [
  2. {
  3. path: '/user',
  4. component: '../layouts/UserLayout',
  5. routes: [
  6. {
  7. name: 'login',
  8. path: '/user/login',
  9. component: './user/login',
  10. },
  11. ],
  12. },
  13. { path: '/', redirect: '/welcome' },
  14. {
  15. path: '/',
  16. component: '../layouts/BasicLayout',
  17. routes: [
  18. {
  19. name: '欢迎',
  20. path: '/welcome',
  21. icon: 'smile',
  22. component: './Welcome',
  23. },
  24. {
  25. name: '数据统计',
  26. path: '/statistics',
  27. icon: 'dashboard',
  28. hideInMenu: true,
  29. routes: [
  30. {
  31. component: './404',
  32. },
  33. ]
  34. },
  35. {
  36. name: '活动管理',
  37. path: '/activity',
  38. icon: 'flag',
  39. hideInMenu: true,
  40. routes: [
  41. {
  42. component: './404',
  43. },
  44. ],
  45. },
  46. {
  47. name: '系统管理',
  48. path: '/system',
  49. icon: 'setting',
  50. hideInMenu: true,
  51. routes: [
  52. {
  53. component: './404',
  54. },
  55. ],
  56. },
  57. {
  58. name: '财务管理',
  59. path: '/finance',
  60. icon: 'dollar',
  61. hideInMenu: true,
  62. routes: [
  63. {
  64. component: './404',
  65. },
  66. ],
  67. },
  68. ],
  69. },
  70. {
  71. component: './404',
  72. },
  73. ];