
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: 'portal',
		path: '/portal',
		component: () => import('@/views/portal/index.vue'),
		children: [
			{
				name: 'portal.resourceCenter',
				path: '/portal/resourceCenter',
				hide: true,
				component: () => import('@/views/resourceCenter/index.vue')
			},
			{
				name: 'portal.resourceDetails',
				path: '/portal/resourceDetails',
				hide: true,
				component: () => import('@/views/resourceDetails/index.vue')
			},
			{
				name: 'portal.personalResources',
				path: '/portal/personalResources',
				component: () => import('@/views/myResources/personalResources/index.vue')
			},
			// {
			// 	name: 'portal.resourceManagement',
			// 	path: '/portal/resourceManagement',
			// 	component: () => import('@/views/myResources/resourceManagement/index.vue')
			// },
			{
				name: 'portal.courseCenter',
				path: '/portal/courseCenter',
				component: () => import('@/views/courseCenter/index.vue')
			},
			{
				name: 'portal.courseDetails',
				path: '/portal/courseDetails',
				component: () => import('@/views/courseDetails/index.vue')
			},
			{
				name: 'portal.courseAdd',
				path: '/portal/courseAdd',
				component: () => import('@/views/courseAdd/index.vue')
			},
			{
				name: 'portal.courseManagement',
				path: '/portal/courseManagement',
				component: () => import('@/views/courseManagement/index.vue')
			}
		]
	},
	{
		path: '/notLook',
		name: 'notLook',
		component: () => import('@/views/notLook/index.vue'),
		children: []
	},
	{
		name: 'slogin',
		path: '/slogin',
		component: () => import('@/views/slogin/login.vue'),
	},
	{
		name: 'tlogin',
		path: '/tlogin',
		component: () => import('@/views/tlogin/login.vue'),
	},
	{
		name: 'classManagement',
		path: '/classManagement',
		component: () => import('@/views/classManagement/index.vue'),
	},
	{
		name: 'announcementManagement',
		path: '/announcementManagement',
		component: () => import('@/views/announcementManagement/index.vue'),
	}
]
/**
 * 路由白名单（数组形式）
 *
 * 如果组件像登录一样，那就简单的写一个path，即可实现放开，
 * 如果组件不在这边的，需要手动添加组件，就像other一样，
 * 因为没登陆你没法拿到后端给你返回的那一坨，当然就找不到component
 *
 * @author yubaoshan
 */
export default portal
