139 lines
3.9 KiB
TypeScript
139 lines
3.9 KiB
TypeScript
import type { AppRouteRecordRaw } from '../types';
|
|
import { MENU_GROUP_IDS } from '@/router/constants';
|
|
|
|
import IconContentManuscript from '@/assets/svg/svg-contentManuscript.svg';
|
|
|
|
const COMPONENTS: AppRouteRecordRaw[] = [
|
|
{
|
|
path: '/manuscript',
|
|
name: 'Manuscript',
|
|
redirect: 'manuscript/list',
|
|
meta: {
|
|
locale: '内容稿件',
|
|
icon: IconContentManuscript,
|
|
requiresAuth: true,
|
|
requireLogin: true,
|
|
roles: ['*'],
|
|
id: MENU_GROUP_IDS.CREATIVE_GENERATION_WORKSHOP_ID,
|
|
},
|
|
children: [
|
|
{
|
|
path: 'list',
|
|
name: 'ManuscriptList',
|
|
meta: {
|
|
locale: '内容稿件列表',
|
|
requiresAuth: true,
|
|
requireLogin: true,
|
|
roles: ['*'],
|
|
},
|
|
component: () => import('@/views/creative-generation-workshop/manuscript/list/index.vue'),
|
|
},
|
|
{
|
|
path: 'upload',
|
|
name: 'ManuscriptUpload',
|
|
meta: {
|
|
locale: '稿件上传',
|
|
requiresAuth: true,
|
|
requireLogin: true,
|
|
hideFooter: true,
|
|
roles: ['*'],
|
|
hideInMenu: true,
|
|
activeMenu: 'ManuscriptList',
|
|
},
|
|
component: () => import('@/views/creative-generation-workshop/manuscript/upload/index.vue'),
|
|
},
|
|
{
|
|
path: 'edit/:id',
|
|
name: 'ManuscriptEdit',
|
|
meta: {
|
|
locale: '账号详情',
|
|
requiresAuth: true,
|
|
requireLogin: true,
|
|
hideFooter: true,
|
|
roles: ['*'],
|
|
hideInMenu: true,
|
|
activeMenu: 'ManuscriptList',
|
|
},
|
|
component: () => import('@/views/creative-generation-workshop/manuscript/edit/index.vue'),
|
|
},
|
|
{
|
|
path: 'detail/:id',
|
|
name: 'ManuscriptDetail',
|
|
meta: {
|
|
locale: '稿件详情',
|
|
requiresAuth: true,
|
|
requireLogin: true,
|
|
hideFooter: true,
|
|
roles: ['*'],
|
|
hideInMenu: true,
|
|
activeMenu: 'ManuscriptList',
|
|
},
|
|
component: () => import('@/views/creative-generation-workshop/manuscript/detail/index.vue'),
|
|
},
|
|
{
|
|
path: 'check-list',
|
|
name: 'ManuscriptCheckList',
|
|
meta: {
|
|
locale: '内容稿件审核',
|
|
requiresAuth: true,
|
|
requireLogin: true,
|
|
roles: ['*'],
|
|
},
|
|
component: () => import('@/views/creative-generation-workshop/manuscript/check-list/index.vue'),
|
|
},
|
|
{
|
|
path: 'check-list/detail/:id',
|
|
name: 'ManuscriptCheckListDetail',
|
|
meta: {
|
|
locale: '内容稿件审核详情',
|
|
requiresAuth: true,
|
|
requireLogin: true,
|
|
hideFooter: true,
|
|
hideInMenu: true,
|
|
roles: ['*'],
|
|
activeMenu: 'ManuscriptCheckList',
|
|
},
|
|
component: () => import('@/views/creative-generation-workshop/manuscript/detail/index.vue'),
|
|
},
|
|
{
|
|
path: 'check',
|
|
name: 'ManuscriptCheck',
|
|
meta: {
|
|
locale: '稿件审核',
|
|
requiresAuth: true,
|
|
requireLogin: true,
|
|
hideFooter: true,
|
|
roles: ['*'],
|
|
hideInMenu: true,
|
|
activeMenu: 'ManuscriptCheckList',
|
|
},
|
|
component: () => import('@/views/creative-generation-workshop/manuscript/check/index.vue'),
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/explore/list/:shareCode',
|
|
name: 'ExploreList',
|
|
meta: {
|
|
locale: '分享链接列表',
|
|
requiresAuth: false,
|
|
requireLogin: false,
|
|
roles: ['*'],
|
|
},
|
|
component: () => import('@/views/creative-generation-workshop/explore/list/index.vue'),
|
|
},
|
|
{
|
|
path: '/explore/detail/:shareCode/:id',
|
|
name: 'ExploreDetail',
|
|
meta: {
|
|
locale: '分享链接详情',
|
|
requiresAuth: false,
|
|
requireLogin: false,
|
|
roles: ['*'],
|
|
},
|
|
component: () => import('@/views/creative-generation-workshop/explore/detail/index.vue'),
|
|
},
|
|
];
|
|
|
|
export default COMPONENTS;
|