🎨 修改代码格式.
This commit is contained in:
@@ -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' });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user