diff --git a/frontend/src/request/cluster.ts b/frontend/src/request/cluster.ts index bc02379d8ccfb8b4588e2d5cfef0a430a007305e..50d9f5d3251fdfc8997f78a51b32d49e96e64d2c 100644 --- a/frontend/src/request/cluster.ts +++ b/frontend/src/request/cluster.ts @@ -88,4 +88,13 @@ export function startService(data: any) { method: 'post', data }) -} \ No newline at end of file +} + +// 重启一项服务 +export function restartService(data: any) { + return request({ + url: 'agent/service_restart', + method: 'post', + data + }) +}