🐛修复下线客户端的bug

This commit is contained in:
coward 2024-06-06 17:25:34 +08:00
parent 85553f4bef
commit b75fc53d59
2 changed files with 2 additions and 2 deletions

View File

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

View File

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