问题: - Session.tsx 和 Home.tsx 直接访问 participants.length - 当后端返回的 session 数据中 participants 为 undefined 时崩溃 - 导致 TypeError: Cannot read properties of undefined (reading length) 修复: - 添加空值检查 (session.participants || []).length - 使用 Math.max(0, ...) 防止负数长度 Generated with Claude Code Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| account | ||
| message-router | ||
| server-party | ||
| server-party-api | ||
| service-party-app | ||
| session-coordinator | ||
| tss-wasm | ||