首页、学情、任务绑定接口

This commit is contained in:
hexi
2026-11-06 16:43:41 +08:00
parent af73453035
commit 4a19192d73
16 changed files with 965 additions and 236 deletions
+2 -3
View File
@@ -68,7 +68,7 @@
import { apiLogin } from '../../api/auth'
import { apiGetBoundStudents, type BoundStudentSummary } from '../../api/student'
import { setUserInfo, saveRememberInfo, getRememberInfo } from '../../store/user'
import { applyBoundStudent, saveSelectedStudent } from '../../store/home'
import { switchBoundStudent } from '../../store/home'
type LoginForm = {
phone: string
@@ -144,8 +144,7 @@
? res.data.students.find((item) => item.id === savedStudent.id)!
: res.data.students[0]
saveSelectedStudent(selectedStudent)
applyBoundStudent(selectedStudent)
switchBoundStudent(selectedStudent)
}
/**