background_post.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. const Background = () => import('views/admin/Background')
  2. // ********************************************************************************************************************
  3. // 稿件后台管理
  4. const VideoPost = () => import('views/post/VideoPost')
  5. const VideoPostEdit = () => import('views/post/VideoPostEdit')
  6. const ImagePost = () => import('views/post/ImagePost')
  7. const ImagePostEdit = () => import('views/post/ImagePostEdit')
  8. const ArticlePost = () => import('views/post/ArticlePost')
  9. const ArticlePostEdit = () => import('views/post/ArticlePostEdit')
  10. export default {
  11. path: '/bg/post',
  12. redirect: '/bg/account',
  13. name: 'Post',
  14. component: Background,
  15. meta: { needAuth: true, roles: ['admin'] },
  16. children: [
  17. {
  18. path: '/bg/post/video',
  19. name: 'VideoPost',
  20. component: VideoPost,
  21. meta: { needAuth: true, roles: ['admin'] }
  22. },
  23. {
  24. path: '/bg/post/video/edit/:videoId',
  25. name: 'VideoPostEdit',
  26. component: VideoPostEdit,
  27. meta: { needAuth: true, roles: ['admin'] }
  28. },
  29. {
  30. path: '/bg/post/image',
  31. name: 'ImagePost',
  32. component: ImagePost,
  33. meta: { needAuth: true, roles: ['admin'] }
  34. },
  35. {
  36. path: '/bg/post/image/edit/:albumId',
  37. name: 'ImagePostEdit',
  38. component: ImagePostEdit,
  39. meta: { needAuth: true, roles: ['admin'] }
  40. },
  41. {
  42. path: '/bg/post/article',
  43. name: 'ArticlePost',
  44. component: ArticlePost,
  45. meta: { title: '文章稿件', needAuth: true }
  46. },
  47. {
  48. path: '/bg/post/article/edit/:articleId',
  49. name: 'ArticlePostEdit',
  50. component: ArticlePostEdit,
  51. meta: { needAuth: true, roles: ['admin'] }
  52. }
  53. ]
  54. }