fix: 修复多处错误并优化用户体验

修复 ACCESS_TOKEN_INVALID 状态码从 403 改为 401
修复密码表单字段命名不一致问题
优化删除操作取消时的提示关闭逻辑
修复用户信息更新后未同步到 store 的问题
添加修改密码后的自动跳转登录功能
修复非 GET 请求成功时缺少成功提示的问题
This commit is contained in:
zhangtao
2025-07-27 00:26:09 +08:00
parent e7ebbf5479
commit 23d1e7adce
18 changed files with 389 additions and 727 deletions
+4 -4
View File
@@ -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 {