refactor: cluster list

This commit is contained in:
jialin
2025-09-16 11:26:17 +08:00
parent 8de272239e
commit 07ade24ea1
15 changed files with 770 additions and 220 deletions
+4 -2
View File
@@ -102,13 +102,15 @@ export async function queryClusterToken(params: { id: number }) {
// ===================== Worker Pools =====================
export async function queryWorkerPools(
params?: Global.SearchParams & { cluster_id: string | number }
params?: Global.SearchParams & { cluster_id: string | number },
options?: any
) {
return request<Global.PageResponse<NodePoolListItem>>(
`${WORKER_POOLS_API}?`,
{
method: 'GET',
params
params,
cancelToken: options?.token
}
);
}