/**
 *  Copyright [2022] [https://www.xiaonuo.vip]
 *	Snowy采用APACHE LICENSE 2.0开源协议，您在使用过程中，需要注意以下几点：
 *	1.请不要删除和修改根目录下的LICENSE文件。
 *	2.请不要删除和修改Snowy源码头部的版权声明。
 *	3.本项目代码可免费商业使用，商业使用请保留源码和相关描述文件的项目出处，作者声明等。
 *	4.分发源码时候，请注明软件出处 https://www.xiaonuo.vip
 *	5.不可二次分发开源参与同类竞品，如有想法可联系团队xiaonuobase@qq.com商议合作。
 *	6.若您的项目无法满足以上几点，需要更多功能代码，获取Snowy商业授权许可，请在官网购买授权，地址为 https://www.xiaonuo.vip
 */
const constRouters = [
	{
		path: '/findpwd'
	},
	{
		path: '/callback'
	},
	{
		path: '/portal',
		component: () => import('@/views/portal/index.vue')
	},
	{
		path: '/portal/resourceCenter',
		component: () => import('@/views/resourceCenter/index.vue')
	},
	{
		path: '/portal/resourceDetails',
		component: () => import('@/views/resourceDetails/index.vue')
	},
	{
		path: '/portal/personalResources',
		component: () => import('@/views/myResources/personalResources/index.vue')
	},
	{
		path: '/portal/resourceManagement',
		component: () => import('@/views/myResources/resourceManagement/index.vue')
	},
	{
		path: '/portal/courseCenter',
		component: () => import('@/views/courseCenter/index.vue')
	},
	{
		path: '/portal/courseDetails',
		component: () => import('@/views/courseDetails/index.vue')
	},
	{
		path: '/portal/courseAdd',
		component: () => import('@/views/courseAdd/index.vue')
	},
	{
		path: '/portal/courseManagement',
		component: () => import('@/views/courseManagement/index.vue')
	},
	{
		path: '/other',
		name: 'other',
		component: () => import('@/views/other/index.vue'),
		meta: {
			title: '其他'
		}
	},
	{
		path: '/pay/sample/doJsPay',
		name: 'doJsPay',
		component: () => import('@/views/pay/sample/doJsPay.vue'),
		meta: {
			title: '微信JSAPI支付'
		}
	},
	{
		path: '/notLook',
		name: 'notLook',
		component: () => import('@/views/notLook/index.vue'),
		meta: {
			title: '无权限访问'
		}
	},
	{
		path: '/share/:shareBatchNum',
		name: 'Share',
		component: () => import('@/views/myResource/Share.vue'),
		meta: {
			title: '分享',
			content: {
				description: '查看他人分享'
			}
		},
		props: true
	},
	{
		path: '/student/paper/',
		name: 'studentPaper',
		component: () => import('@/views/student/paper/index.vue'),
		meta: {
			title: '学生试卷'
		}
	},
	{
		path: '/student/edit/',
		name: 'studentEdit',
		component: () => import('@/views/student/exam/paper/edit.vue'),
		meta: {
			title: '试卷批改'
		}
	},
	{
		path: '/student/record/',
		name: 'studentRecord',
		component: () => import('@/views/student/record/index.vue'),
		meta: {
			title: '学生试卷'
		}
	},
	{
		path: '/student/questionError/',
		name: 'QuestionErrorIndex',
		component: () => import('@/views/student/question-error/index.vue'),
		meta: {
			title: '错题本'
		}
	},
	{
		path: '/student/do/',
		name: 'studentDo',
		component: () => import('@/views/student/exam/paper/do.vue'),
		meta: {
			title: '试卷答题'
		}
	},
	{
		path: '/student/read/',
		name: 'studentRead',
		component: () => import('@/views/student/exam/paper/read.vue'),
		meta: {
			title: '试卷查看'
		}
	}
]
/**
 * 路由白名单（数组形式）
 *
 * 如果组件像登录一样，那就简单的写一个path，即可实现放开，
 * 如果组件不在这边的，需要手动添加组件，就像other一样，
 * 因为没登陆你没法拿到后端给你返回的那一坨，当然就找不到component
 *
 * @author yubaoshan
 */
export default constRouters
