fix: 第3轮调试Bug修复 (P1: 弱随机+crypto/rand, Knowledge键对齐; P2: 简报created_at, CORS+安全头)

This commit is contained in:
2026-05-20 14:20:47 +08:00
parent 25d6eff7c3
commit 3adf0137cc
6 changed files with 349 additions and 16 deletions
@@ -178,7 +178,7 @@ export function KnowledgePanel({ onClose }: KnowledgePanelProps) {
setSearchErr('');
try {
const res = await searchKnowledge(searchQuery.trim());
setSearchResults(res.results);
setSearchResults(res.chunks);
setSearchTotal(res.total);
} catch (e: any) {
setSearchErr(e.message || '搜索失败');