|
|
|
export const constRouter: any =
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
component: () => import('@/Layout/index.vue'),
|
|
|
|
name: 'Layout',
|
|
|
|
redirect: '/home',
|
|
|
|
meta: {
|
|
|
|
icon: '',
|
|
|
|
title: '',
|
|
|
|
hidden: false,
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '/home',
|
|
|
|
name: 'Home',
|
|
|
|
component: () => import('@/views/home/index.vue'),
|
|
|
|
meta: {
|
|
|
|
icon: '',
|
|
|
|
title: '首页',
|
|
|
|
hidden: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/appraise',
|
|
|
|
name: 'Appraise',
|
|
|
|
component: () => import('@/views/appraise/index.vue'),
|
|
|
|
meta: {
|
|
|
|
icon: '',
|
|
|
|
title: '竞赛评价',
|
|
|
|
hidden: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/navigation',
|
|
|
|
name: 'Navigation',
|
|
|
|
component: () => import('@/views/navigation/index.vue'),
|
|
|
|
meta: {
|
|
|
|
icon: '',
|
|
|
|
title: '竞赛导航',
|
|
|
|
hidden: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/achievement',
|
|
|
|
name: 'Achievement',
|
|
|
|
component: () => import('@/views/achievement/index.vue'),
|
|
|
|
meta: {
|
|
|
|
icon: '',
|
|
|
|
title: '竞赛成果',
|
|
|
|
hidden: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/competition',
|
|
|
|
name: 'Competition',
|
|
|
|
component: () => import('@/views/competition/index.vue'),
|
|
|
|
meta: {
|
|
|
|
icon: '',
|
|
|
|
title: '年度赛事',
|
|
|
|
hidden: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/registration',
|
|
|
|
name: 'Registration',
|
|
|
|
component: () => import('@/views/registration/index.vue'),
|
|
|
|
meta: {
|
|
|
|
icon: '',
|
|
|
|
title: '报名信息',
|
|
|
|
hidden: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/news',
|
|
|
|
name: 'news',
|
|
|
|
component: () => import('@/views/news/index.vue'),
|
|
|
|
meta: {
|
|
|
|
icon: '',
|
|
|
|
title: '竞赛新闻',
|
|
|
|
hidden: false,
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
name: 'newsList',
|
|
|
|
component: () => import('@/views/news/components/newsList.vue'), // 新闻列表组件
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/newsDetail',
|
|
|
|
name: 'newsDetail',
|
|
|
|
component: () => import('@/views/news/components/newsDetail.vue'),
|
|
|
|
meta: {
|
|
|
|
icon: '',
|
|
|
|
title: '新闻内容详情',
|
|
|
|
hidden: true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|