From 6d9aecc8958a207b6e7dc185f1e7ae82fa2c47dc Mon Sep 17 00:00:00 2001 From: Gzx1999 Date: Thu, 30 Nov 2023 16:10:11 +0800 Subject: [PATCH] add restart service api --- frontend/src/request/cluster.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/src/request/cluster.ts b/frontend/src/request/cluster.ts index bc02379..50d9f5d 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 + }) +} -- Gitee