新增管理员模拟登录
This commit is contained in:
@@ -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',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user