兵马未动 粮草先行

This commit is contained in:
RISE
2026-02-08 23:47:50 +08:00
parent 00a005e65f
commit 2670340af3
47 changed files with 3909 additions and 257 deletions

View File

@@ -188,9 +188,13 @@ const handleClassChange = async (classCode: string) => {
}
try {
const res = await queryStudentListByClass({ classCode, current: 1, size: 10000 })
if (res.data && Array.isArray(res.data.records)) {
studentList.value = res.data.records
// 接口文档GET 仅 classCode返回 data 为数组
const res = await queryStudentListByClass({ classCode })
const data = res?.data
if (Array.isArray(data)) {
studentList.value = data
} else if (data?.records && Array.isArray(data.records)) {
studentList.value = data.records
} else {
studentList.value = []
}