fix(web): 修复 demo 任务详情页旁路提问历史缺失导致的整页崩溃

mock 模式下 GET /api/tasks/<id>/side-questions 无路由,被读兜底当集合返回
[],data.items 为 undefined,旁路 hook 的 merge() 迭代抛 TypeError: t is not
iterable,异常在 setState updater 中经 render 重抛、catch 接不住,整页被错误
边界接管。mock handler 显式返回空旁路历史,sideAPI.history 同时归一化返回值。
This commit is contained in:
Autumn-27 committed 2026-09-14 09:37:08 -04:00
1 parent 90f31577f2
commit f2589ad47c
3 files changed
+19 -1

No files matched your search

BIN
View File
Binary file not shown.