mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-24 05:26:58 +00:00
fix: 修复多处错误并优化用户体验
修复 ACCESS_TOKEN_INVALID 状态码从 403 改为 401 修复密码表单字段命名不一致问题 优化删除操作取消时的提示关闭逻辑 修复用户信息更新后未同步到 store 的问题 添加修改密码后的自动跳转登录功能 修复非 GET 请求成功时缺少成功提示的问题
This commit is contained in:
@@ -19,7 +19,7 @@ export const UserAPI = {
|
||||
},
|
||||
|
||||
updateCurrentUserInfo(body: InfoFormState) {
|
||||
return request<ApiResponse>({
|
||||
return request<ApiResponse<UserInfo>>({
|
||||
url: `/system/user/current/info/update`,
|
||||
method: "put",
|
||||
data: body,
|
||||
@@ -229,9 +229,9 @@ export interface InfoFormState {
|
||||
}
|
||||
|
||||
export interface PasswordFormState {
|
||||
oldPassword: string;
|
||||
newPassword: string;
|
||||
confirmPassword: string;
|
||||
old_password: string;
|
||||
new_password: string;
|
||||
confirm_password: string;
|
||||
}
|
||||
|
||||
export interface ResetPasswordForm {
|
||||
|
||||
Reference in New Issue
Block a user