fix: ui issues

This commit is contained in:
jialin
2026-02-06 11:13:49 +08:00
parent d54722609c
commit 7f3d6bb55f
35 changed files with 364 additions and 141 deletions
+6 -2
View File
@@ -147,7 +147,7 @@ const Benchmark: React.FC = () => {
} else if (val === 'stop') {
handleStopBenchmark(row.id);
} else if (val === 'export') {
exportData([row.id]);
exportData([row.id], row.name);
}
});
@@ -192,7 +192,11 @@ const Benchmark: React.FC = () => {
});
const handleExportData = () => {
exportData(rowSelection.selectedRowKeys);
const firstSelectedRow = dataSource.dataList.find(
(item) => item.id === rowSelection.selectedRowKeys[0]
);
const name = firstSelectedRow ? firstSelectedRow.name : 'benchmark';
exportData(rowSelection.selectedRowKeys, name);
};
return (