问题:加载失败: (item.total_amount || 0).toFixed is not a function 原因: - 数据库返回的 total_amount 是字符串类型(Decimal) - JavaScript中字符串没有 toFixed 方法 - 导致渲染历史记录时出错 修复: - 使用 parseFloat(item.total_amount || 0).toFixed(2) - 先将字符串转换为数字,再调用 toFixed 现在历史记录应该能正常加载和显示了。 Coze-Commit-Type: user Coze-User-ID: 3722323274763196 Coze-Conversation-ID: 9894087