✨ 新增管理员代登录功能

This commit is contained in:
caojia
2026-11-04 15:20:05 +08:00
parent 93da04fe5e
commit 5cccbf510f
17 changed files with 540 additions and 18 deletions
+9
View File
@@ -10,6 +10,15 @@ export function listUser(query) {
})
}
// 创建和结束当前标签页的代登录会话
export function startImpersonation(userId) {
return request({ url: '/system/user/impersonation/' + userId, method: 'post' })
}
export function exitImpersonation() {
return request({ url: '/system/user/impersonation/exit', method: 'post' })
}
// 查询用户下拉选项(登录即可访问,仅含 id/账号/姓名/部门等展示字段)
export function optionUserList() {
return request({