router.config.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import defaultRouter from './default.router.config'
  2. export default [
  3. // chat
  4. {
  5. path: '/chat',
  6. component: '../layouts/ChatLayout',
  7. routes: [
  8. {
  9. path: '/chat',
  10. component: './Chat/Main'
  11. }
  12. ]
  13. },
  14. {
  15. path: '/docs',
  16. component: './Docs/index',
  17. routes: [
  18. {
  19. path: '/docs/live/wxlive',
  20. component: './Docs/live/wxlive'
  21. }
  22. ]
  23. },
  24. // user
  25. {
  26. path: '/account',
  27. component: '../layouts/AccountLayout',
  28. routes: [
  29. {
  30. path: '/account',
  31. redirect: '/account/login'
  32. },
  33. {
  34. path: '/account/login',
  35. component: './Account/Login'
  36. },
  37. {
  38. path: '/account/register',
  39. component: './Account/Register/Register'
  40. },
  41. {
  42. path: '/account/register/tenant',
  43. component: './Account/Register/RegisterTenant'
  44. },
  45. {
  46. path: '/account/email-activation',
  47. component: './Account/EmailActivation/EmailActivation'
  48. },
  49. {
  50. path: '/account/confirm-email',
  51. component: './Account/EmailActivation/ConfirmEmail'
  52. },
  53. {
  54. path: '/account/forgot-password',
  55. component: './Account/Password/ForgotPassword'
  56. },
  57. {
  58. path: '/account/reset-password',
  59. component: './Account/Password/ResetPassword'
  60. }
  61. ]
  62. },
  63. // app
  64. {
  65. path: '/report',
  66. name: '数据面板',
  67. icon: 'dashboard',
  68. layout: null,
  69. component: './FangCom/Report/Index'
  70. // authority: ['Pages.Administration'],
  71. },
  72. {
  73. path: '/index.html',
  74. routers: [
  75. {
  76. path: '/index.html',
  77. redirect: '/dashboard'
  78. }
  79. ]
  80. },
  81. ...defaultRouter
  82. ]