vod.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. const Index = () => import('views/vod/Index')
  2. const ShareVideo = () => import('views/home/ShareVideo')
  3. const Home = () => import('views/home/Home')
  4. const TimelineIndex = () => import('views/home/Timeline')
  5. const VideoIndex = () => import('views/home/Video')
  6. const VideoTag = () => import('views/home/VideoTag')
  7. const ShortVideoIndex = () => import('views/home/ShortVideo')
  8. const VideoPage = () => import('views/home/VideoPage')
  9. const AudioIndex = () => import('views/home/Audio')
  10. const AudioPage = () => import('views/home/AudioPage')
  11. const ImagePage = () => import('views/home/ImagePage')
  12. const PlaylistIndex = () => import('views/home/PlaylistIndex')
  13. const PlaylistView = () => import('views/home/PlaylistView')
  14. export default {
  15. path: '/vod',
  16. name: 'Vod',
  17. component: Index,
  18. meta: { needAuth: false },
  19. children: [
  20. {
  21. path: '',
  22. name: 'Home',
  23. component: Home,
  24. meta: { needAuth: false }
  25. },
  26. {
  27. path: '/vod/timeline',
  28. name: 'TimelineIndex',
  29. component: TimelineIndex,
  30. meta: { needAuth: true }
  31. },
  32. {
  33. path: '/vod/shortvideo',
  34. name: 'ShortVideoIndex',
  35. component: ShortVideoIndex,
  36. meta: { needAuth: false }
  37. },
  38. {
  39. path: '/vod/video',
  40. name: 'VideoIndex',
  41. component: VideoIndex,
  42. meta: { needAuth: false }
  43. },
  44. {
  45. path: '/vod/video/:id',
  46. name: 'VideoPage',
  47. component: VideoPage,
  48. meta: { needAuth: false }
  49. },
  50. {
  51. path: '/vod/video/tag/:tag',
  52. name: 'VideoTag',
  53. component: VideoTag,
  54. meta: { needAuth: false }
  55. },
  56. {
  57. path: '/vod/audio',
  58. name: 'AudioIndex',
  59. component: AudioIndex,
  60. meta: { needAuth: false }
  61. },
  62. {
  63. path: '/vod/audio/:audioId',
  64. name: 'AudioPage',
  65. component: AudioPage,
  66. meta: { needAuth: false }
  67. },
  68. {
  69. path: '/vod/image/:albumId',
  70. name: 'ImagePage',
  71. component: ImagePage,
  72. meta: { needAuth: false }
  73. },
  74. {
  75. path: '/vod/playlist',
  76. name: 'PlaylistIndex',
  77. component: PlaylistIndex,
  78. meta: { needAuth: false }
  79. },
  80. {
  81. path: '/vod/playlist/:albumId',
  82. name: 'PlaylistView',
  83. component: PlaylistView,
  84. meta: { needAuth: false }
  85. },
  86. {
  87. path: '/vod/s/:shareId',
  88. name: 'ShareVideo',
  89. component: ShareVideo,
  90. meta: { needAuth: false }
  91. }
  92. ]
  93. }