2025-07-25 15:11:57 +08:00
|
|
|
import type { AppRouteRecordRaw } from '../types';
|
|
|
|
|
import { MENU_GROUP_IDS } from '@/router/constants';
|
|
|
|
|
|
2025-07-25 16:05:11 +08:00
|
|
|
import IconContentManuscript from '@/assets/svg/svg-contentManuscript.svg';
|
2025-07-25 15:11:57 +08:00
|
|
|
|
|
|
|
|
const COMPONENTS: AppRouteRecordRaw[] = [
|
|
|
|
|
{
|
|
|
|
|
path: '/manuscript',
|
|
|
|
|
name: 'Manuscript',
|
|
|
|
|
redirect: 'manuscript/list',
|
|
|
|
|
meta: {
|
|
|
|
|
locale: '内容稿件',
|
2025-07-25 16:05:11 +08:00
|
|
|
icon: IconContentManuscript,
|
2025-07-25 15:11:57 +08:00
|
|
|
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;
|