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(); } }); };