
const portal = [
	// {
	// 	name: 'portal',
	// 	path: '/portal',
	// 	components: () => import('@/portal/index.vue'),
	// 	children: [
	// 		{
	// 			name: 'resourceCenter',
	// 			path: '/portal/resourceCenter',
	// 			component: () => import('@/resourceCenter/index.vue')
	// 		},
	// 		{
	// 			name: 'resourceDetails',
	// 			path: '/portal/resourceDetails',
	// 			component: () => import('@/resourceDetails/index.vue')
	// 		}
	// 	]
	// }
	// {
	// 	name: 'index',
	// 	path: '/',
	// 	component: () => import('@/App.vue'),
	// },
	{
		name: 'resourceCenter',
		path: '/',

		component: () => import('@/views/resourceCenter/index.vue')
	},
	{
		name: 'resourceDetails',
		path: '/portal/resourceDetails',

		component: () => import('@/views/resourceDetails/index.vue')
	},
	{
		name: 'personalResources',
		path: '/portal/personalResources',
		component: () => import('@/views/myResources/personalResources/index.vue')
	},
	{
		name: 'resourceManagement',
		path: '/portal/resourceManagement',
		component: () => import('@/views/myResources/resourceManagement/index.vue')
	},
	{
		name: 'courseCenter',
		path: '/portal/courseCenter',
		component: () => import('@/views/courseCenter/index.vue')
	},
	{
		name: 'courseDetails',
		path: '/portal/courseDetails',
		component: () => import('@/views/courseDetails/index.vue')
	},
	{
		name: 'courseAdd',
		path: '/portal/courseAdd',
		component: () => import('@/views/courseAdd/index.vue')
	},
	{
		name: 'courseManagement',
		path: '/portal/courseManagement',
		component: () => import('@/views/courseManagement/index.vue')
	},
	{
		name: 'classManagement',
		path: '/portal/classManagement',
		component: () => import('@/views/classManagement/index.vue'),
	},
	{
		name: 'announcementManagement',
		path: '/portal/announcementManagement',
		component: () => import('@/views/announcementManagement/index.vue'),
	},
	{
		name: 'questionnaireManagement',
		path: '/questionnaireManagement',
		component: () => import('@/views/exm/questionnaireManagement/index.vue'),
	},
	{
		name: 'examinationManagement',
		path: '/examinationManagement',
		component: () => import('@/views/exm/examinationManagement/index.vue'),
	},
	{
		name: 'exampaper',
		path: '/exampaper',
		component: () => import('@/views/exm/exampaper/index.vue'),
	},
	{
		name: 'question',
		path: '/question',
		component: () => import('@/views/exm/question/index.vue'),
	},
	{
		name: 'answerManagement',
		path: '/answerManagement',
		component: () => import('@/views/answerManagement/index.vue'),
	},
	{
		name: 'userfileconvert',
		path: '/userfileconvert',
		component: () => import('@/views/userfileconvert/index.vue'),
	},
	{
		name: 'courseOpen',
		path: '/courseOpen',
		component: () => import('@/views/courseOpen/index.vue'),
	},
	{
		name: 'statistics',
		path: '/statistics',
		component: () => import('@/views/statistics/index.vue'),
	},
	{
		name: 'usercenter',
		path: '/usercenter',
		component: () => import('@/views/sys/user/usercenter.vue'),
	},
	{
		name: 'forum',
		path: '/forum',
		component: () => import('@/views/forum/index.vue'),
	},
	{
		name: 'userfileconvert',
		path: '/userfileconvert',
		component: () => import('@/views/userfileconvert/index.vue'),
	},
	{
		name: 'resourceConversionLog',
		path: '/resourceConversionLog',
		component: () => import('@/views/resourceConversionLog/index.vue'),
	}

]
/**
 * 路由白名单（数组形式）
 *
 * 如果组件像登录一样，那就简单的写一个path，即可实现放开，
 * 如果组件不在这边的，需要手动添加组件，就像other一样，
 * 因为没登陆你没法拿到后端给你返回的那一坨，当然就找不到component
 *
 * @author yubaoshan
 */
export default portal
