fix: benchmark tooltip
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user