修改密码完成

This commit is contained in:
2026-10-08 10:00:07 +08:00
parent 9f34602b3a
commit 2e9b20d559
5 changed files with 20 additions and 706 deletions
+10
View File
@@ -24,6 +24,16 @@ export function fetchGetUserInfo() {
return request<Api.Auth.UserInfo>({ url: '/api/auth/me' });
}
// 修改密码
export function changePasswordApi(data: { old_password: string, new_password: string, confirm_password: string }) {
return request({
url: '/api/auth/change-password',
method: 'post',
data
});
}
/**
* Refresh token
*
-9
View File
@@ -100,12 +100,3 @@ export function resetPasswordApi(id: number) {
});
}
// 修改用户密码
export function changePasswordApi(params: { oldPassword: string, password: string }) {
return request({
url: `/api/user/change-password`,
method: 'post',
data: params
});
}