🎨优化

This commit is contained in:
coward 2024-06-07 09:05:36 +08:00
parent b75fc53d59
commit 6715ce35c9
2 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,6 @@ export const getClientConnects = () => {
}; };
// 强制下线客户端 // 强制下线客户端
export const offlineClient = (id: { id: string }) => { export const offlineClient = (id: string) => {
return http.request<any>("post", baseUri("/client/offline/" + id)); return http.request<any>("post", baseUri("/client/offline/" + id));
}; };

View File

@ -71,6 +71,7 @@ const offlineClientHandler = (clientID: string) => {
offlineClient(clientID).then(res => { offlineClient(clientID).then(res => {
if (res.code === 200) { if (res.code === 200) {
message("下线客户端成功", { type: "success" }); message("下线客户端成功", { type: "success" });
getClientsStatus();
} }
}); });
}; };