chore(release): v0.3.41
智能体抽屉读 ?open= 上下文、回复链接用抽屉地址;抽屉打开不亮焦点框;语句统计重复 key。 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
1 parent
78a4d562f0
commit
1ade49fe8e
22 files changed
+62
-33
No files matched your search
@@ -207,10 +207,12 @@ const fmtMs = (ms: number) =>
|
||||
ms >= 1000 ? `${(ms / 1000).toFixed(1)} 秒` : `${ms < 10 ? ms.toFixed(2) : Math.round(ms)} 毫秒`;
|
||||
|
||||
function StatementTable({ rows }: { rows: StatementRow[] }) {
|
||||
// 规范化后的语句文本可能重复(不同角色 / 库各一行),用序号做 key
|
||||
const keyed = rows.map((r, i) => ({ ...r, rowIndex: i }));
|
||||
return (
|
||||
<DataTable<StatementRow>
|
||||
rows={rows}
|
||||
rowKey={(r) => r.query}
|
||||
<DataTable<StatementRow & { rowIndex: number }>
|
||||
rows={keyed}
|
||||
rowKey={(r) => String(r.rowIndex)}
|
||||
empty={{ title: "还没有统计" }}
|
||||
columns={[
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user