Compare commits

..

2 Commits

Author SHA1 Message Date
911bc95b16 🎨下线客户端后刷新客户端链接列表 2024-06-07 09:06:11 +08:00
b1b49e2605 🎨修复下线客户端bug 2024-06-07 08:47:47 +08:00
2 changed files with 2 additions and 1 deletions

View File

@@ -229,5 +229,5 @@ func (r clientRepo) GetByPublicKey(publicKey string) (data entity.Client, err er
// @param id
// @return err
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
}

View File

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