|
|
@@ -1,291 +0,0 @@
|
|
|
-// ********************************************************************************************************************
|
|
|
-// 后台管理主页
|
|
|
-const Admin = () => import('views/admin/Admin')
|
|
|
-
|
|
|
-// 站点配置
|
|
|
-const AdminStoreConfig = () => import('views/admin/site/AdminStoreConfig')
|
|
|
-const AdminNotifyConfig = () => import('views/admin/site/AdminNotifyConfig')
|
|
|
-const AdminCategory = () => import('views/admin/site/AdminCategory')
|
|
|
-const AdminRegistry = () => import('views/admin/site/AdminRegistry')
|
|
|
-
|
|
|
-// 后台管理
|
|
|
-const AdminCharge = () => import('views/admin/AdminCharge')
|
|
|
-const AdminUserList = () => import('views/admin/AdminUserList')
|
|
|
-const AdminVideoList = () => import('views/admin/AdminVideoList')
|
|
|
-const AdminAvatarList = () => import('views/admin/AdminAvatarList')
|
|
|
-
|
|
|
-// 后端系统
|
|
|
-const AdminGateway = () => import('views/admin/backend/AdminGateway')
|
|
|
-const AdminDubboService = () => import('views/admin/backend/AdminDubboService')
|
|
|
-const AdminSpringCloudService = () => import('views/admin/backend/AdminSpringCloudService')
|
|
|
-const AdminBackendLog = () => import('views/admin/backend/AdminBackendLog')
|
|
|
-const AdminAccessLog = () => import('views/admin/backend/AdminAccessLog')
|
|
|
-const AdminRuntimeLog = () => import('views/admin/backend/AdminRuntimeLog')
|
|
|
-
|
|
|
-// ********************************************************************************************************************
|
|
|
-// 用户后台主页
|
|
|
-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 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/site',
|
|
|
- name: 'Post',
|
|
|
- component: PostIndex,
|
|
|
- meta: { needAuth: true },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: '/background/site/store',
|
|
|
- name: 'AdminStoreConfig',
|
|
|
- component: AdminStoreConfig,
|
|
|
- meta: { needAuth: true }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/background/site/notify',
|
|
|
- name: 'AdminNotifyConfig',
|
|
|
- component: AdminNotifyConfig,
|
|
|
- meta: { needAuth: true }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/background/site/registry',
|
|
|
- name: 'AdminRegistry',
|
|
|
- component: AdminRegistry,
|
|
|
- meta: { needAuth: true }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/background/site/category',
|
|
|
- name: 'AdminCategory',
|
|
|
- component: AdminCategory,
|
|
|
- meta: { needAuth: true }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/background/admin',
|
|
|
- name: 'Post',
|
|
|
- component: PostIndex,
|
|
|
- meta: { needAuth: true },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: '/background/admin/charge',
|
|
|
- name: 'AdminCharge',
|
|
|
- component: AdminCharge,
|
|
|
- meta: { needAuth: true, role: ['admin'] }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/background/admin/user',
|
|
|
- name: 'AdminUserList',
|
|
|
- component: AdminUserList,
|
|
|
- meta: { needAuth: true, role: ['admin'] }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/background/admin/video',
|
|
|
- name: 'AdminVideoList',
|
|
|
- component: AdminVideoList,
|
|
|
- meta: { needAuth: true, role: ['admin'] }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/background/admin/avatar',
|
|
|
- name: 'AdminAvatarList',
|
|
|
- component: AdminAvatarList,
|
|
|
- meta: { needAuth: true, role: ['admin'] }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- 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 }
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- ]
|
|
|
-}
|