新增管理员模拟登录

This commit is contained in:
吴红兵
2026-03-09 13:22:55 +08:00
parent bfd864bb2c
commit 92aa64f1dd
2 changed files with 56 additions and 2 deletions

View File

@@ -153,3 +153,13 @@ export function getUserListByRole(obj: string) {
method: 'get',
});
}
/**
* 模拟登录(管理员以指定用户身份登录)
*/
export function simulateLogin(userId: string) {
return request({
url: '/auth/token/simulate/' + userId,
method: 'get',
});
}