sync-docs-and-fixes
All checks were successful
CI / build-deploy (push) Successful in 4m39s

This commit is contained in:
SpecialX
2026-03-03 17:32:26 +08:00
parent 538805bad0
commit eb08c0ab68
73 changed files with 2218 additions and 422 deletions

View File

@@ -304,3 +304,18 @@
- 问题:`isCorrect` 字段可能为 `boolean | null`,直接用于 JSX 渲染导致 "Type 'unknown' is not assignable to type 'ReactNode'" 错误。
- 修复:增加显式布尔值检查 `opt.isCorrect === true`,确保 React 条件渲染接收到合法的 boolean 值。
---
## 14. 实现更新2026-03-03
### 14.1 学生作业状态修复
- 提交作业与学生列表查询改为使用真实登录用户,避免提交后仍显示未开始。
- 学生列表优先展示最近一次已提交/已评分记录,提升状态准确性。
- 主要修改:
- [actions.ts](file:///c:/Users/xiner/Desktop/CICD/src/modules/homework/actions.ts)
- [data-access.ts](file:///c:/Users/xiner/Desktop/CICD/src/modules/homework/data-access.ts)
### 14.2 校验
- `npm run lint`:通过
- `npm run typecheck`:通过