feat(profile): implement independent email update dialog to prevent accidental password resets during partial updates

This commit is contained in:
DXC
2026-04-17 12:48:30 +08:00
parent d651d19e86
commit 772f3f45f4
3 changed files with 140 additions and 2 deletions

View File

@ -68,6 +68,15 @@ export function changeMyPassword(data: { new_password: string; confirm_password:
})
}
// 【新增】自我更新邮箱(与密码修改完全隔离)
export function updateMyEmail(data: { email: string }) {
return request({
url: '/v1/auth/me/email',
method: 'put',
data
})
}
// 【新增】批量创建用户
export function batchCreateUser(data: any[]) {
return request({