From 6715ce35c9a95244fa18178183a347b1a47326a3 Mon Sep 17 00:00:00 2001 From: coward Date: Fri, 7 Jun 2024 09:05:36 +0800 Subject: [PATCH] =?UTF-8?q?:art:=E4=BC=98=E5=8C=96?= 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 | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/clients.ts b/src/api/clients.ts index d72d7f4..ebf771e 100644 --- a/src/api/clients.ts +++ b/src/api/clients.ts @@ -44,6 +44,6 @@ export const getClientConnects = () => { }; // 强制下线客户端 -export const offlineClient = (id: { id: string }) => { +export const offlineClient = (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 8ba7e7e..387d463 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -71,6 +71,7 @@ const offlineClientHandler = (clientID: string) => { offlineClient(clientID).then(res => { if (res.code === 200) { message("下线客户端成功", { type: "success" }); + getClientsStatus(); } }); };