143 lines
4.1 KiB
TypeScript
143 lines
4.1 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: '/material-center',
|
|
name: 'MaterialCenter',
|
|
redirect: 'material-center/finished-products',
|
|
meta: {
|
|
locale: '素材中心',
|
|
icon: IconContentManuscript,
|
|
requiresAuth: true,
|
|
requireLogin: true,
|
|
roles: ['*'],
|
|
id: MENU_GROUP_IDS.CREATIVE_GENERATION_WORKSHOP_ID,
|
|
},
|
|
children: [
|
|
{
|
|
path: 'finished-products',
|
|
name: 'MaterialCenterFinishedProducts',
|
|
meta: {
|
|
locale: '成品库',
|
|
requiresAuth: true,
|
|
requireLogin: true,
|
|
roles: ['*'],
|
|
},
|
|
component: () => import('@/views/material-center/index.vue'),
|
|
},
|
|
{
|
|
path: 'raw-material',
|
|
name: 'MaterialCenterRawMaterial',
|
|
meta: {
|
|
locale: '原料库',
|
|
requiresAuth: true,
|
|
requireLogin: true,
|
|
roles: ['*'],
|
|
},
|
|
component: () => import('@/views/material-center/index.vue'),
|
|
},
|
|
{
|
|
path: 'upload',
|
|
name: 'ManuscriptUpload',
|
|
meta: {
|
|
locale: '稿件上传',
|
|
requiresAuth: true,
|
|
requireLogin: true,
|
|
hideFooter: true,
|
|
roles: ['*'],
|
|
hideInMenu: true,
|
|
activeMenu: 'MaterialCenterFinishedProducts',
|
|
},
|
|
component: () => import('@/views/material-center/components/finished-products/manuscript/upload/index.vue'),
|
|
},
|
|
{
|
|
path: 'edit/:id',
|
|
name: 'ManuscriptEdit',
|
|
meta: {
|
|
locale: '账号详情',
|
|
requiresAuth: true,
|
|
requireLogin: true,
|
|
hideFooter: true,
|
|
roles: ['*'],
|
|
hideInMenu: true,
|
|
activeMenu: 'MaterialCenterFinishedProducts',
|
|
},
|
|
component: () => import('@/views/material-center/components/finished-products/manuscript/edit/index.vue'),
|
|
},
|
|
{
|
|
path: 'detail/:id',
|
|
name: 'ManuscriptDetail',
|
|
meta: {
|
|
locale: '稿件详情',
|
|
requiresAuth: true,
|
|
requireLogin: true,
|
|
hideFooter: true,
|
|
roles: ['*'],
|
|
hideInMenu: true,
|
|
activeMenu: 'MaterialCenterFinishedProducts',
|
|
},
|
|
component: () => import('@/views/material-center/components/finished-products/manuscript/detail/index.vue'),
|
|
},
|
|
{
|
|
path: 'check-list/detail/:id',
|
|
name: 'ManuscriptCheckListDetail',
|
|
meta: {
|
|
locale: '内容稿件审核详情',
|
|
requiresAuth: true,
|
|
requireLogin: true,
|
|
hideFooter: true,
|
|
hideInMenu: true,
|
|
roles: ['*'],
|
|
activeMenu: 'MaterialCenterFinishedProducts',
|
|
},
|
|
component: () => import('@/views/material-center/components/finished-products/manuscript/detail/index.vue'),
|
|
},
|
|
{
|
|
path: 'check',
|
|
name: 'ManuscriptCheck',
|
|
meta: {
|
|
locale: '稿件审核',
|
|
requiresAuth: true,
|
|
requireLogin: true,
|
|
hideFooter: true,
|
|
roles: ['*'],
|
|
hideInMenu: true,
|
|
activeMenu: 'MaterialCenterFinishedProducts',
|
|
},
|
|
component: () => import('@/views/material-center/components/finished-products/manuscript/check/index.vue'),
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/explore/list/:shareCode',
|
|
name: 'ExploreList',
|
|
meta: {
|
|
locale: '分享链接列表',
|
|
requiresAuth: false,
|
|
requireLogin: false,
|
|
hideFooter: true,
|
|
hideSidebar: true,
|
|
roles: ['*'],
|
|
},
|
|
component: () => import('@/views/material-center/components/finished-products/explore/list/index.vue'),
|
|
},
|
|
{
|
|
path: '/explore/detail/:shareCode/:id',
|
|
name: 'ExploreDetail',
|
|
meta: {
|
|
locale: '分享链接详情',
|
|
requiresAuth: false,
|
|
requireLogin: false,
|
|
hideFooter: true,
|
|
hideSidebar: true,
|
|
roles: ['*'],
|
|
},
|
|
component: () => import('@/views/material-center/components/finished-products/explore/detail/index.vue'),
|
|
},
|
|
];
|
|
|
|
export default COMPONENTS;
|