gwy-exam/docs/checks/task-02.md

22 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 任务 02 检查记录JSON Store 与演示数据
日期2026-08-28
## 命令检查
- `pnpm typecheck`通过server、client
- `pnpm build`通过server、client
- 后端启动后自动创建 `server/data/` 下 9 个 JSON 文件:通过。
- 演示题库读取:通过,内置行测题目 3 道。
- 演示要闻读取:通过,内置要闻 1 条。
- 宿主机 IP `172.16.34.66:3000/health`:通过。
- 停止服务后重新启动,数据文件仍可被读取:通过(文件由首次启动创建,未被覆盖)。
## 浏览器检查
任务 02 只涉及后端数据层,没有新增页面;已尝试回归检查现有 localhost 页面,但当前浏览器自动化 URL 策略拒绝再次操作该标签页。前端入口此前已完成人工可见页面和导航检查,本任务未修改前端输出。
## 当前结论
JSON Store、原子写入、缺失文件初始化和演示数据已完成后端数据目录固定在 `server/data/`,不会随启动目录变化。