oudecheng
a9ce308c05
fix(web): 移除 ChatContainer 的 key remount,修复新建话题列表刷新延迟
话题切换时 key={selectedTopic} 导致整个 ChatContainer 子树卸载重建,
触发 ExpertSelector/ModelSelector 重新挂载并发起 3 次冗余 HTTP 请求
(getSelectedExpert/listModelOptions/模型选择刷新),引入 200-500ms 延迟。
改用 topicId prop 透传话题 ID:
- App.tsx: 移除 key,viewKey 纳入 selectedTopic 保持各话题独立滚动位置
- ChatContainer: 新增 topicId prop 透传给 MessageInput
- MessageInput: 监听 topicId 变化清空草稿,替代原 key remount 重置机制
2026-08-12 09:16:38 +08:00
..
2026-06-08 14:43:47 +08:00
2026-08-12 09:16:38 +08:00
2026-05-26 17:43:15 +08:00
2026-08-03 23:24:02 +08:00
2026-08-03 23:24:02 +08:00
2026-08-03 23:24:02 +08:00
2026-06-08 14:43:47 +08:00
2026-08-07 08:34:07 +08:00
2026-08-07 08:34:07 +08:00
2026-05-26 17:43:15 +08:00
2026-05-26 17:43:15 +08:00
2026-05-26 17:43:15 +08:00
2026-05-26 17:43:15 +08:00
2026-06-15 17:22:32 +08:00
2026-07-08 11:24:10 +08:00