// ******************************************************************************************************************** // 后台管理主页 const Admin = () => import('views/admin/Admin') const AdminGateway = () => import('views/admin/AdminGateway') const AdminDubboService = () => import('views/admin/AdminDubboService') const AdminSpringCloudService = () => import('views/admin/AdminSpringCloudService') const AdminBackendLog = () => import('views/admin/AdminBackendLog') const AdminAccessLog = () => import('views/admin/AdminAccessLog') const AdminRuntimeLog = () => import('views/admin/AdminRuntimeLog') const AdminSiteConfig = () => import('views/admin/AdminSiteConfig') const AdminUserList = () => import('views/admin/AdminUserList') const AdminVideoList = () => import('views/admin/AdminVideoList') const AdminAvatarList = () => import('views/admin/AdminAvatarList') // ******************************************************************************************************************** // 用户后台主页 const MyIndex = () => import('views/my/MyIndex') const MyProfile = () => import('views/my/MyProfile') const MyContact = () => import('views/my/MyContact') const MyRecord = () => import('views/my/MyRecord') const MyOAuth = () => import('views/my/MyOAuth') const MyRcmd = () => import('views/my/MyRcmd') const MyMessage = () => import('views/my/MyMessage') const MyVip = () => import('views/my/MyVip') const MyWallet = () => import('views/my/MyWallet') // ******************************************************************************************************************** // 稿件后台主页 const PostIndex = () => import('views/post/PostIndex') const PostAnalysis = () => import('views/post/PostAnalysis') const History = () => import('views/post/History') const AlbumPost = () => import('views/post/AlbumPost') // 稿件后台管理 const VideoPost = () => import('views/post/VideoPost') const VideoPostEdit = () => import('views/post/VideoPostEdit') const ImagePost = () => import('views/post/ImagePost') const ImagePostEdit = () => import('views/post/ImagePostEdit') const ArticlePost = () => import('views/post/ArticlePost') const ArticlePostEdit = () => import('views/post/ArticlePostEdit') export default { path: '/background', name: 'Admin', component: Admin, meta: { needAuth: true }, children: [ { path: '', name: 'Admin', component: MyProfile, meta: { needAuth: true } }, { path: '/background/account', name: 'Account', component: MyIndex, meta: { needAuth: true }, children: [ { path: '/background/account/profile', name: 'MyProfile', component: MyProfile, meta: { needAuth: true } }, { path: '/background/account/record', name: 'MyRecord', component: MyRecord, meta: { needAuth: true } }, { path: '/background/account/oauth', name: 'OAuth', component: MyOAuth, meta: { needAuth: true } } ] }, { path: '/background/my', name: 'My', component: MyIndex, meta: { needAuth: true }, children: [ { path: '/background/my/album', name: 'AlbumPost', component: AlbumPost, meta: { needAuth: true } }, { path: '/background/my/history', name: 'History', component: History, meta: { needAuth: true } }, { path: '/background/my/vip', name: 'MyVip', component: MyVip, meta: { needAuth: true } }, { path: '/background/my/wallet', name: 'MyWallet', component: MyWallet, meta: { needAuth: true } }, { path: '/background/my/message', name: 'MyMessage', component: MyMessage, meta: { needAuth: true } }, { path: '/background/my/rcmd', name: 'Rcmd', component: MyRcmd, meta: { needAuth: true } }, { path: '/background/my/contact', name: 'MyContact', component: MyContact, meta: { needAuth: true } } ] }, { path: '/background/post', name: 'Post', component: PostIndex, meta: { needAuth: true }, children: [ { path: '/background/post/video', name: 'VideoPost', component: VideoPost, meta: { needAuth: true } }, { path: '/background/post/video/edit/:videoId', name: 'VideoPostEdit', component: VideoPostEdit, meta: { needAuth: true } }, { path: '/background/post/image', name: 'ImagePost', component: ImagePost, meta: { needAuth: true } }, { path: '/background/post/image/edit/:albumId', name: 'ImagePostEdit', component: ImagePostEdit, meta: { needAuth: true } }, { path: '/background/post/article', name: 'ArticlePost', component: ArticlePost, meta: { needAuth: true } }, { path: '/background/post/article/edit/:articleId', name: 'ArticlePostEdit', component: ArticlePostEdit, meta: { needAuth: true } } ] }, { path: '/background/admin', name: 'Post', component: PostIndex, meta: { needAuth: true }, children: [ { path: '/background/admin/site', name: 'AdminSiteConfig', component: AdminSiteConfig, meta: { needAuth: true } }, { path: '/background/admin/user', name: 'AdminUserList', component: AdminUserList, meta: { needAuth: true } }, { path: '/background/admin/video', name: 'AdminVideoList', component: AdminVideoList, meta: { needAuth: true } }, { path: '/background/admin/avatar', name: 'AdminAvatarList', component: AdminAvatarList, meta: { needAuth: true } } ] }, { path: '/background/backend', name: 'Backend', component: PostIndex, meta: { needAuth: true }, children: [ { path: '/background/backend/gateway', name: 'Gateway', component: AdminGateway, meta: { needAuth: true } }, { path: '/background/backend/dubbo_service', name: 'DubboService', component: AdminDubboService, meta: { needAuth: true } }, { path: '/background/backend/springcloud_service', name: 'SpringCloudService', component: AdminSpringCloudService, meta: { needAuth: true } }, { path: '/background/backend/access_log', name: 'AccessLog', component: AdminAccessLog, meta: { needAuth: true } }, { path: '/background/backend/runtime_log', name: 'RuntimeLog', component: AdminRuntimeLog, meta: { needAuth: true } }, { path: '/background/backend/realtime_log', name: 'Realtime', component: AdminBackendLog, meta: { needAuth: true } } ] } ] }