Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
911bc95b16 | |||
b1b49e2605 |
@@ -229,5 +229,5 @@ func (r clientRepo) GetByPublicKey(publicKey string) (data entity.Client, err er
|
|||||||
// @param id
|
// @param id
|
||||||
// @return err
|
// @return err
|
||||||
func (r clientRepo) Disabled(id string) (err error) {
|
func (r clientRepo) Disabled(id string) (err error) {
|
||||||
return r.Model(&entity.Client{}).Where("id = ?", id).Update("status", 0).Error
|
return r.Model(&entity.Client{}).Where("id = ?", id).Update("enabled", 0).Error
|
||||||
}
|
}
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user