From b75fc53d59877216a842ec18c9dddaa501e1a2ee Mon Sep 17 00:00:00 2001 From: coward Date: Thu, 6 Jun 2024 17:25:34 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=E4=BF=AE=E5=A4=8D=E4=B8=8B=E7=BA=BF?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/clients.ts | 2 +- src/views/dashboard/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/clients.ts b/src/api/clients.ts index ebf771e..d72d7f4 100644 --- a/src/api/clients.ts +++ b/src/api/clients.ts @@ -44,6 +44,6 @@ export const getClientConnects = () => { }; // 强制下线客户端 -export const offlineClient = (id: string) => { +export const offlineClient = (id: { id: string }) => { return http.request("post", baseUri("/client/offline/" + id)); }; diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index e94b73a..8ba7e7e 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -68,7 +68,7 @@ const initServerInfo = () => { // 强制下线客户端 const offlineClientHandler = (clientID: string) => { - offlineClient().then(res => { + offlineClient(clientID).then(res => { if (res.code === 200) { message("下线客户端成功", { type: "success" }); }