fix: details layout

This commit is contained in:
jialin
2026-01-30 18:48:55 +08:00
parent 5747cae87a
commit d173e2d49b
14 changed files with 103 additions and 33 deletions
@@ -0,0 +1,27 @@
import { useIntl } from '@umijs/max';
import { message } from 'antd';
import { stopBenchmark } from '../apis';
import { BenchmarkStatusValueMap } from '../config';
const useStopBenchmark = () => {
const intl = useIntl();
const handleStopBenchmark = async (id: number) => {
try {
await stopBenchmark({
id,
data: {
state: BenchmarkStatusValueMap.Stopped
}
});
message.success(intl.formatMessage({ id: 'common.message.success' }));
} catch (error) {}
};
const handleBatchStopBenchmark = async (ids: number[]) => {};
return {
handleStopBenchmark
};
};
export default useStopBenchmark;