🎨 修改代码格式.

This commit is contained in:
lijiahang
2024-05-31 16:32:45 +08:00
parent 7bfa8a73be
commit 285f0532d3
23 changed files with 126 additions and 44 deletions

View File

@@ -1,6 +1,7 @@
import type { DataGrid, Pagination } from '@/types/global';
import type { TableData } from '@arco-design/web-vue/es/table/interface';
import axios from 'axios';
import qs from 'query-string';
/**
* 主机创建请求
@@ -102,3 +103,15 @@ export function getHostPage(request: HostQueryRequest) {
export function deleteHost(id: number) {
return axios.delete('/asset/host/delete', { params: { id } });
}
/**
* 批量删除主机
*/
export function batchDeleteHost(idList: Array<number>) {
return axios.delete('/asset/host/batch-delete', {
params: { idList },
paramsSerializer: params => {
return qs.stringify(params, { arrayFormat: 'comma' });
}
});
}