eat(web): migrate student function
This commit is contained in:
1 parent
f657290e71
commit
35b4ad6a30
8 files changed
+329
-1
No files matched your search
@@ -11,6 +11,9 @@ import {
|
||||
FileDoneOutlined,
|
||||
ReadOutlined,
|
||||
WarningOutlined,
|
||||
AuditOutlined,
|
||||
CheckSquareOutlined,
|
||||
FormOutlined,
|
||||
} from '@ant-design/icons'
|
||||
import { Avatar, Badge, Button, Layout, Menu, Tag } from 'antd'
|
||||
import { useQuery } from '@tanstack/react-query'
|
||||
@@ -51,7 +54,10 @@ export default function AppShell() {
|
||||
? [{ key: '/exams', icon: <FileDoneOutlined />, label: roles.includes('Teacher') ? '监考安排' : '考试安排' }]
|
||||
: []),
|
||||
...(isStudentHome ? [
|
||||
{ key: '/my-profile', icon: <AuditOutlined />, label: '个人档案' },
|
||||
{ key: '/grades', icon: <ReadOutlined />, label: '我的成绩' },
|
||||
{ key: '/my-attendance', icon: <CheckSquareOutlined />, label: '我的考勤' },
|
||||
{ key: '/course-selections', icon: <FormOutlined />, label: '学生选课' },
|
||||
{ key: '/warnings', icon: <WarningOutlined />, label: '学业预警' },
|
||||
] : []),
|
||||
...(user?.roles.includes('SuperAdmin')
|
||||
|
||||
Reference in new issue
Block a user