| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- const Background = () => import('views/admin/Background')
- // ********************************************************************************************************************
- // 稿件后台管理
- 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: '/bg/post',
- redirect: '/bg/account',
- name: 'Post',
- component: Background,
- meta: { needAuth: true, roles: ['admin'] },
- children: [
- {
- path: '/bg/post/video',
- name: 'VideoPost',
- component: VideoPost,
- meta: { needAuth: true, roles: ['admin'] }
- },
- {
- path: '/bg/post/video/edit/:videoId',
- name: 'VideoPostEdit',
- component: VideoPostEdit,
- meta: { needAuth: true, roles: ['admin'] }
- },
- {
- path: '/bg/post/image',
- name: 'ImagePost',
- component: ImagePost,
- meta: { needAuth: true, roles: ['admin'] }
- },
- {
- path: '/bg/post/image/edit/:albumId',
- name: 'ImagePostEdit',
- component: ImagePostEdit,
- meta: { needAuth: true, roles: ['admin'] }
- },
- {
- path: '/bg/post/article',
- name: 'ArticlePost',
- component: ArticlePost,
- meta: { title: '文章稿件', needAuth: true }
- },
- {
- path: '/bg/post/article/edit/:articleId',
- name: 'ArticlePostEdit',
- component: ArticlePostEdit,
- meta: { needAuth: true, roles: ['admin'] }
- }
- ]
- }
|