fix: benchmark tooltip

This commit is contained in:
jialin
2026-02-06 18:34:20 +08:00
parent 4132494a49
commit 4a582ec8b1
9 changed files with 51 additions and 32 deletions
@@ -13,7 +13,7 @@ const matchFilename = (disposition: string | null): string | undefined => {
};
export function useExportBenchmark() {
const exportData = async (data: any[], name: string) => {
const exportData = async (data: any[], name?: string) => {
const date = dayjs().format('YYYYMMDD_HHmmss');
const fileName = `${name || 'benchmark'}_${date}`;
try {
@@ -31,8 +31,9 @@ export default function useQueryProfiles() {
const list =
res?.profiles?.map((item) => {
const label = profileMap.get(item.name)?.label;
return {
label: profileMap.get(item.name)?.label || item.name,
label: label ? intl.formatMessage({ id: label }) : item.name,
tips: profileMap.get(item.name)?.tips || '',
value: item.name,
config: {