!104 add 新增在线登录设备管理

* update 在线登录设备管理删除权限
* add 新增在线登录设备管理
This commit is contained in:
AprilWind
2024-04-19 05:02:14 +00:00
committed by 疯狂的狮子Li
parent c21f0d7d77
commit 8c6cf5bc43
3 changed files with 88 additions and 1 deletions

View File

@ -18,3 +18,19 @@ export function forceLogout(tokenId: string) {
method: 'delete'
});
}
// 获取当前用户登录在线设备
export function getOnline() {
return request({
url: '/monitor/online',
method: 'get'
});
}
// 删除当前在线设备
export function delOnline(tokenId: string) {
return request({
url: '/monitor/online/' + tokenId,
method: 'post'
});
}