2024-12-29 20:44:44 +08:00
|
|
|
const Layout = () => import('@/layout/user-layout.vue')
|
|
|
|
|
|
|
|
|
|
import { RouterView } from 'vue-router'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'User',
|
|
|
|
|
path: '/user',
|
|
|
|
|
component: Layout,
|
|
|
|
|
redirect: '/user/index',
|
|
|
|
|
meta: {
|
|
|
|
|
title: '示例页面',
|
|
|
|
|
icon: 'uil:pagelines',
|
|
|
|
|
role: [],
|
|
|
|
|
requireAuth: false,
|
|
|
|
|
order: 1,
|
|
|
|
|
},
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
name: 'UserIndex',
|
|
|
|
|
path: 'index',
|
|
|
|
|
component: () => import('./index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '首页',
|
|
|
|
|
icon: 'ic:baseline-table-view',
|
|
|
|
|
role: [],
|
|
|
|
|
requireAuth: false,
|
|
|
|
|
keepAlive: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
name: 'Signup',
|
|
|
|
|
path: 'signup',
|
|
|
|
|
component: () => import('./signup/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '注册',
|
|
|
|
|
icon: 'ic:baseline-table-view',
|
|
|
|
|
role: [],
|
|
|
|
|
requireAuth: false,
|
|
|
|
|
keepAlive: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'RePwInfo',
|
|
|
|
|
path: 're-pw-info',
|
|
|
|
|
component: () => import('./re-pw-info/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '学生重置密码',
|
|
|
|
|
icon: 'ic:baseline-table-view',
|
|
|
|
|
role: [],
|
|
|
|
|
requireAuth: false,
|
|
|
|
|
keepAlive: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'ResetPassword',
|
|
|
|
|
path: 'reset-password',
|
|
|
|
|
component: () => import('./reset-password/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '学生重置密码',
|
|
|
|
|
icon: 'ic:baseline-table-view',
|
|
|
|
|
role: [],
|
|
|
|
|
requireAuth: false,
|
|
|
|
|
keepAlive: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'ExamList',
|
|
|
|
|
path: 'exam-list',
|
|
|
|
|
component: () => import('./exam-list/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '作业列表',
|
|
|
|
|
icon: 'ic:baseline-table-view',
|
|
|
|
|
role: ['student', 'admin', 'teacher'],
|
|
|
|
|
requireAuth: true,
|
|
|
|
|
keepAlive: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'TakeClass',
|
|
|
|
|
path: 'take-class',
|
|
|
|
|
component: () => import('./take-class/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '加入班级',
|
|
|
|
|
icon: 'ic:baseline-table-view',
|
|
|
|
|
role: ['student'],
|
|
|
|
|
requireAuth: true,
|
|
|
|
|
keepAlive: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'FAQ',
|
|
|
|
|
path: 'faq',
|
|
|
|
|
component: () => import('./faq/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '常见问题及解答',
|
|
|
|
|
icon: 'ic:baseline-table-view',
|
|
|
|
|
role: [],
|
|
|
|
|
requireAuth: false,
|
|
|
|
|
keepAlive: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-03-09 11:43:10 +08:00
|
|
|
{
|
|
|
|
|
name: 'PersonSetting',
|
|
|
|
|
path: 'person-setting',
|
|
|
|
|
component: () => import('./person-setting/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '个人设置',
|
|
|
|
|
icon: 'ic:baseline-table-view',
|
|
|
|
|
role: ['student'],
|
|
|
|
|
requireAuth: true,
|
|
|
|
|
keepAlive: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-03-23 22:18:14 +08:00
|
|
|
{
|
|
|
|
|
name: 'ReportSubmit',
|
2025-04-07 16:57:01 +08:00
|
|
|
path: 'report-submit/:examId/:classId',
|
2025-03-23 22:18:14 +08:00
|
|
|
component: () => import('./report-submit/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '作业详情',
|
|
|
|
|
icon: 'ic:baseline-table-view',
|
|
|
|
|
role: ['student', 'teacher', 'admin'],
|
|
|
|
|
requireAuth: true,
|
|
|
|
|
keepAlive: true,
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'UserScoreAndRank',
|
2025-04-06 21:51:48 +08:00
|
|
|
path: 'score-rank/:examId/:classId',
|
2025-03-23 22:18:14 +08:00
|
|
|
component: () => import('./score-rank/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '作业成绩',
|
|
|
|
|
icon: 'ic:baseline-table-view',
|
|
|
|
|
role: ['student', 'teacher', 'admin'],
|
|
|
|
|
requireAuth: true,
|
|
|
|
|
keepAlive: true,
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-12-29 20:44:44 +08:00
|
|
|
],
|
|
|
|
|
}
|