admin.js 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. // ********************************************************************************************************************
  2. // 后台管理主页
  3. const Admin = () => import('views/admin/Admin')
  4. const AdminGateway = () => import('views/admin/AdminGateway')
  5. const AdminDubboService = () => import('views/admin/AdminDubboService')
  6. const AdminSpringCloudService = () => import('views/admin/AdminSpringCloudService')
  7. const AdminBackendLog = () => import('views/admin/AdminBackendLog')
  8. const AdminAccessLog = () => import('views/admin/AdminAccessLog')
  9. const AdminRuntimeLog = () => import('views/admin/AdminRuntimeLog')
  10. const AdminSiteConfig = () => import('views/admin/AdminSiteConfig')
  11. const AdminUserList = () => import('views/admin/AdminUserList')
  12. const AdminVideoList = () => import('views/admin/AdminVideoList')
  13. const AdminAvatarList = () => import('views/admin/AdminAvatarList')
  14. // ********************************************************************************************************************
  15. // 用户后台主页
  16. const MyIndex = () => import('views/my/MyIndex')
  17. const MyProfile = () => import('views/my/MyProfile')
  18. const MyContact = () => import('views/my/MyContact')
  19. const MyRecord = () => import('views/my/MyRecord')
  20. const MyOAuth = () => import('views/my/MyOAuth')
  21. const MyRcmd = () => import('views/my/MyRcmd')
  22. const MyMessage = () => import('views/my/MyMessage')
  23. const MyVip = () => import('views/my/MyVip')
  24. const MyWallet = () => import('views/my/MyWallet')
  25. // ********************************************************************************************************************
  26. // 稿件后台主页
  27. const PostIndex = () => import('views/post/PostIndex')
  28. const PostAnalysis = () => import('views/post/PostAnalysis')
  29. const History = () => import('views/post/History')
  30. const AlbumPost = () => import('views/post/AlbumPost')
  31. // 稿件后台管理
  32. const VideoPost = () => import('views/post/VideoPost')
  33. const VideoPostEdit = () => import('views/post/VideoPostEdit')
  34. const ImagePost = () => import('views/post/ImagePost')
  35. const ImagePostEdit = () => import('views/post/ImagePostEdit')
  36. const ArticlePost = () => import('views/post/ArticlePost')
  37. const ArticlePostEdit = () => import('views/post/ArticlePostEdit')
  38. export default {
  39. path: '/background',
  40. name: 'Admin',
  41. component: Admin,
  42. meta: { needAuth: true },
  43. children: [
  44. {
  45. path: '',
  46. name: 'Admin',
  47. component: MyProfile,
  48. meta: { needAuth: true }
  49. },
  50. {
  51. path: '/background/account',
  52. name: 'Account',
  53. component: MyIndex,
  54. meta: { needAuth: true },
  55. children: [
  56. {
  57. path: '/background/account/profile',
  58. name: 'MyProfile',
  59. component: MyProfile,
  60. meta: { needAuth: true }
  61. },
  62. {
  63. path: '/background/account/record',
  64. name: 'MyRecord',
  65. component: MyRecord,
  66. meta: { needAuth: true }
  67. },
  68. {
  69. path: '/background/account/oauth',
  70. name: 'OAuth',
  71. component: MyOAuth,
  72. meta: { needAuth: true }
  73. }
  74. ]
  75. },
  76. {
  77. path: '/background/my',
  78. name: 'My',
  79. component: MyIndex,
  80. meta: { needAuth: true },
  81. children: [
  82. {
  83. path: '/background/my/album',
  84. name: 'AlbumPost',
  85. component: AlbumPost,
  86. meta: { needAuth: true }
  87. },
  88. {
  89. path: '/background/my/history',
  90. name: 'History',
  91. component: History,
  92. meta: { needAuth: true }
  93. },
  94. {
  95. path: '/background/my/vip',
  96. name: 'MyVip',
  97. component: MyVip,
  98. meta: { needAuth: true }
  99. },
  100. {
  101. path: '/background/my/wallet',
  102. name: 'MyWallet',
  103. component: MyWallet,
  104. meta: { needAuth: true }
  105. },
  106. {
  107. path: '/background/my/message',
  108. name: 'MyMessage',
  109. component: MyMessage,
  110. meta: { needAuth: true }
  111. },
  112. {
  113. path: '/background/my/rcmd',
  114. name: 'Rcmd',
  115. component: MyRcmd,
  116. meta: { needAuth: true }
  117. },
  118. {
  119. path: '/background/my/contact',
  120. name: 'MyContact',
  121. component: MyContact,
  122. meta: { needAuth: true }
  123. }
  124. ]
  125. },
  126. {
  127. path: '/background/post',
  128. name: 'Post',
  129. component: PostIndex,
  130. meta: { needAuth: true },
  131. children: [
  132. {
  133. path: '/background/post/video',
  134. name: 'VideoPost',
  135. component: VideoPost,
  136. meta: { needAuth: true }
  137. },
  138. {
  139. path: '/background/post/video/edit/:videoId',
  140. name: 'VideoPostEdit',
  141. component: VideoPostEdit,
  142. meta: { needAuth: true }
  143. },
  144. {
  145. path: '/background/post/image',
  146. name: 'ImagePost',
  147. component: ImagePost,
  148. meta: { needAuth: true }
  149. },
  150. {
  151. path: '/background/post/image/edit/:albumId',
  152. name: 'ImagePostEdit',
  153. component: ImagePostEdit,
  154. meta: { needAuth: true }
  155. },
  156. {
  157. path: '/background/post/article',
  158. name: 'ArticlePost',
  159. component: ArticlePost,
  160. meta: { needAuth: true }
  161. },
  162. {
  163. path: '/background/post/article/edit/:articleId',
  164. name: 'ArticlePostEdit',
  165. component: ArticlePostEdit,
  166. meta: { needAuth: true }
  167. }
  168. ]
  169. },
  170. {
  171. path: '/background/admin',
  172. name: 'Post',
  173. component: PostIndex,
  174. meta: { needAuth: true },
  175. children: [
  176. {
  177. path: '/background/admin/site',
  178. name: 'AdminSiteConfig',
  179. component: AdminSiteConfig,
  180. meta: { needAuth: true }
  181. },
  182. {
  183. path: '/background/admin/user',
  184. name: 'AdminUserList',
  185. component: AdminUserList,
  186. meta: { needAuth: true }
  187. },
  188. {
  189. path: '/background/admin/video',
  190. name: 'AdminVideoList',
  191. component: AdminVideoList,
  192. meta: { needAuth: true }
  193. },
  194. {
  195. path: '/background/admin/avatar',
  196. name: 'AdminAvatarList',
  197. component: AdminAvatarList,
  198. meta: { needAuth: true }
  199. }
  200. ]
  201. },
  202. {
  203. path: '/background/backend',
  204. name: 'Backend',
  205. component: PostIndex,
  206. meta: { needAuth: true },
  207. children: [
  208. {
  209. path: '/background/backend/gateway',
  210. name: 'Gateway',
  211. component: AdminGateway,
  212. meta: { needAuth: true }
  213. },
  214. {
  215. path: '/background/backend/dubbo_service',
  216. name: 'DubboService',
  217. component: AdminDubboService,
  218. meta: { needAuth: true }
  219. },
  220. {
  221. path: '/background/backend/springcloud_service',
  222. name: 'SpringCloudService',
  223. component: AdminSpringCloudService,
  224. meta: { needAuth: true }
  225. },
  226. {
  227. path: '/background/backend/access_log',
  228. name: 'AccessLog',
  229. component: AdminAccessLog,
  230. meta: { needAuth: true }
  231. },
  232. {
  233. path: '/background/backend/runtime_log',
  234. name: 'RuntimeLog',
  235. component: AdminRuntimeLog,
  236. meta: { needAuth: true }
  237. },
  238. {
  239. path: '/background/backend/realtime_log',
  240. name: 'Realtime',
  241. component: AdminBackendLog,
  242. meta: { needAuth: true }
  243. }
  244. ]
  245. }
  246. ]
  247. }