feat: remove old password requirement, fix user info display, and add password change reminder on home page

This commit is contained in:
DXC
2026-03-23 11:52:30 +08:00
parent ec5331ffb3
commit 719fe108ba
4 changed files with 52 additions and 51 deletions

View File

@ -59,8 +59,8 @@ export function getMyProfile() {
})
}
// 【新增】自我修改密码(验证旧密码,无需管理员权限
export function changeMyPassword(data: { old_password: string; new_password: string; confirm_password: string }) {
// 【新增】自我修改密码(无需旧密码,JWT 已证明身份
export function changeMyPassword(data: { new_password: string; confirm_password: string }) {
return request({
url: '/v1/auth/me/password',
method: 'put',