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