47 lines
1.2 KiB
TypeScript
47 lines
1.2 KiB
TypeScript
|
|
import type { AppRouteRecordRaw } from '../types';
|
||
|
|
import { MENU_GROUP_IDS } from '@/router/constants';
|
||
|
|
|
||
|
|
import IconRepository from '@/assets/svg/svg-repository.svg';
|
||
|
|
|
||
|
|
const COMPONENTS: AppRouteRecordRaw[] = [
|
||
|
|
{
|
||
|
|
path: '/manuscript',
|
||
|
|
name: 'Manuscript',
|
||
|
|
redirect: 'manuscript/list',
|
||
|
|
meta: {
|
||
|
|
locale: '内容稿件',
|
||
|
|
icon: IconRepository,
|
||
|
|
requiresAuth: false,
|
||
|
|
requireLogin: true,
|
||
|
|
roles: ['*'],
|
||
|
|
id: MENU_GROUP_IDS.CREATIVE_GENERATION_WORKSHOP_ID,
|
||
|
|
},
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
path: 'list',
|
||
|
|
name: 'ManuscriptList',
|
||
|
|
meta: {
|
||
|
|
locale: '内容稿件列表',
|
||
|
|
requiresAuth: false,
|
||
|
|
requireLogin: true,
|
||
|
|
roles: ['*'],
|
||
|
|
},
|
||
|
|
component: () => import('@/views/creative-generation-workshop/manuscript/manuscript-list/index.vue'),
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: 'check',
|
||
|
|
name: 'ManuscriptCheck',
|
||
|
|
meta: {
|
||
|
|
locale: '内容稿件审核',
|
||
|
|
requiresAuth: false,
|
||
|
|
requireLogin: true,
|
||
|
|
roles: ['*'],
|
||
|
|
},
|
||
|
|
component: () => import('@/views/creative-generation-workshop/manuscript/manuscript-check/index.vue'),
|
||
|
|
},
|
||
|
|
],
|
||
|
|
},
|
||
|
|
];
|
||
|
|
|
||
|
|
export default COMPONENTS;
|