style: detail layout

This commit is contained in:
jialin
2026-01-30 18:48:55 +08:00
parent 667751dc5f
commit 5747cae87a
23 changed files with 506 additions and 234 deletions
+17
View File
@@ -10,6 +10,7 @@ import {
export const BENCHMARKS_API = '/benchmarks';
export const DATASETS_API = '/datasets';
export const PROFILES_CONFIG_API = '/benchmark-profiles/default-config';
export const EXPORT_BENCHMARK_LIST = '/benchmarks/export';
export async function queryBenchmarkList(
params: Global.SearchParams,
@@ -103,3 +104,19 @@ export async function queryProfiles(
cancelToken: options?.token
});
}
export async function exportBenchmarkList(
params: {
ids?: number[];
},
options?: {
token?: CancelToken;
}
) {
return request(`${BENCHMARKS_API}/export`, {
method: 'POST',
data: params.ids,
responseType: 'blob',
cancelToken: options?.token
});
}