base.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /* Layout */
  2. import Layout from '@/layout'
  3. export default [
  4. {
  5. path: '/',
  6. component: () => import(/* webpackChunkName: "common-page" */ '@/views/index'),
  7. hidden: true
  8. },
  9. {
  10. name: 'DouyinResult',
  11. path: '/douyin',
  12. component: () => import(/* webpackChunkName: "common-page" */ '@/views/common/redirect/douyin'),
  13. hidden: true
  14. },
  15. {
  16. name: 'DouyinShareSchema',
  17. path: '/douyin/schema',
  18. component: () => import(/* webpackChunkName: "common-page" */ '@/views/common/redirect/schema'),
  19. hidden: true
  20. },
  21. {
  22. path: '/login',
  23. component: () => import(/* webpackChunkName: "common-page" */ '@/views/common/login'),
  24. hidden: true
  25. },
  26. {
  27. path: '/code',
  28. component: () => import(/* webpackChunkName: "common-page" */ '@/views/common/auth/code'),
  29. hidden: true
  30. },
  31. {
  32. path: '/proxy',
  33. component: () => import(/* webpackChunkName: "common-page" */ '@/views/common/proxy'),
  34. hidden: true
  35. },
  36. {
  37. path: '/login/redirect',
  38. component: () => import(/* webpackChunkName: "common-page" */ '@/views/common/login/redirect'),
  39. hidden: true
  40. },
  41. {
  42. path: '/redirect',
  43. component: Layout,
  44. hidden: true,
  45. children: [
  46. {
  47. path: '/redirect/:path(.*)',
  48. component: () => import('@/views/common/redirect/index')
  49. }
  50. ]
  51. },
  52. {
  53. path: '/pay',
  54. component: Layout,
  55. name: 'PayStatus',
  56. meta: { title: '支付状态' },
  57. hidden: true,
  58. redirect: '/pay/success',
  59. children: [
  60. {
  61. path: 'success',
  62. component: () => import(/* webpackChunkName: "common-page" */ '@/views/common/payment/success'),
  63. hidden: true
  64. },
  65. {
  66. path: 'faild',
  67. component: () => import(/* webpackChunkName: "common-page" */ '@/views/common/payment/faild'),
  68. hidden: true
  69. }
  70. ]
  71. },
  72. {
  73. path: '/password',
  74. component: Layout,
  75. name: 'Password',
  76. meta: { title: '密码管理' },
  77. hidden: true,
  78. children: [
  79. {
  80. path: 'edit',
  81. meta: { title: '修改密码' },
  82. component: () => import(/* webpackChunkName: "common-page" */ '@/views/common/password'),
  83. hidden: true
  84. }
  85. ]
  86. },
  87. {
  88. path: '/404',
  89. component: () => import(/* webpackChunkName: "common-page" */ '@/views/common/error-page/404'),
  90. hidden: true
  91. },
  92. {
  93. path: '/401',
  94. component: () => import(/* webpackChunkName: "common-page" */ '@/views/common/error-page/401'),
  95. hidden: true
  96. },
  97. // 404页面 放在最后面
  98. { path: '*', redirect: '/404', hidden: true }
  99. ]