🐛修复下线客户端的bug
This commit is contained in:
parent
85553f4bef
commit
b75fc53d59
@ -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));
|
||||
};
|
||||
|
@ -68,7 +68,7 @@ const initServerInfo = () => {
|
||||
|
||||
// 强制下线客户端
|
||||
const offlineClientHandler = (clientID: string) => {
|
||||
offlineClient().then(res => {
|
||||
offlineClient(clientID).then(res => {
|
||||
if (res.code === 200) {
|
||||
message("下线客户端成功", { type: "success" });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user