background_my.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // ********************************************************************************************************************
  2. // 后台管理主页
  3. const Background = () => import('views/admin/Background')
  4. // ********************************************************************************************************************
  5. // 用户后台主页
  6. const MyContact = () => import('views/my/MyContact')
  7. const MyRcmd = () => import('views/my/MyRcmd')
  8. const MyMessage = () => import('views/my/MyMessage')
  9. const MyVip = () => import('views/my/MyVip')
  10. const MyWallet = () => import('views/my/MyWallet')
  11. const MyDevice = () => import('views/my/MyDevice')
  12. // ********************************************************************************************************************
  13. // 稿件后台主页
  14. const History = () => import('views/post/History')
  15. const AlbumPost = () => import('views/post/AlbumPost')
  16. export default {
  17. path: '/bg/my',
  18. redirect: '/bg',
  19. name: 'My',
  20. title: '我的数据',
  21. icon: 'el-icon-user',
  22. component: Background,
  23. meta: { needAuth: true, roles: ['tnb_user'] },
  24. children: [
  25. {
  26. path: '/bg/my/album',
  27. name: 'AlbumPost',
  28. title: '收藏夹',
  29. icon: 'el-icon-user',
  30. component: AlbumPost,
  31. meta: { needAuth: true, roles: ['tnb_user'] }
  32. },
  33. {
  34. path: '/bg/my/history',
  35. name: 'History',
  36. title: '历史记录',
  37. icon: 'el-icon-user',
  38. component: History,
  39. meta: { needAuth: true, roles: ['tnb_user'] }
  40. },
  41. {
  42. path: '/bg/my/vip',
  43. name: 'MyVip',
  44. title: '我的会员',
  45. icon: 'el-icon-user',
  46. component: MyVip,
  47. meta: { needAuth: true, roles: ['tnb_user'] }
  48. },
  49. {
  50. path: '/bg/my/wallet',
  51. name: 'MyWallet',
  52. title: '我的钱包',
  53. icon: 'el-icon-user',
  54. component: MyWallet,
  55. meta: { needAuth: true, roles: ['tnb_user'] }
  56. },
  57. {
  58. path: '/bg/my/message',
  59. name: 'MyMessage',
  60. title: '我的消息',
  61. icon: 'el-icon-user',
  62. component: MyMessage,
  63. meta: { needAuth: true, roles: ['tnb_user'] }
  64. },
  65. {
  66. path: '/bg/my/rcmd',
  67. name: 'Rcmd',
  68. title: '推荐设置',
  69. icon: 'el-icon-user',
  70. component: MyRcmd,
  71. meta: { needAuth: true, roles: ['tnb_user'] }
  72. },
  73. {
  74. path: '/bg/my/contact',
  75. name: 'MyContact',
  76. title: '联系人',
  77. icon: 'el-icon-user',
  78. component: MyContact,
  79. meta: { needAuth: true, roles: ['tnb_user'] }
  80. },
  81. {
  82. path: '/bg/my/device',
  83. name: 'MyDevice',
  84. title: '我的设备',
  85. icon: 'el-icon-user',
  86. component: MyDevice,
  87. meta: { needAuth: true, roles: ['tnb_user'] }
  88. }
  89. ]
  90. }