feat: 优化管理后台页面UI、修复TS编译错误、新增人生事件模块
- 优化 AI 配置列表页面:重构统计卡片、搜索表单、表格列展示 - 修复 3 处 TypeScript TS6133 编译错误,恢复构建 - 新增管理员修改密码和重置密码功能 - 优化小程序多个页面样式和交互 - 人生事件模块完善 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -51,3 +51,21 @@ export function deleteAdmin(id: string) {
|
||||
params: { id }
|
||||
})
|
||||
}
|
||||
|
||||
// 修改管理员自己的密码(当前登录管理员)
|
||||
export function changeMyPassword(data: { oldPassword: string; newPassword: string }) {
|
||||
return request<ApiResponse<void>>({
|
||||
url: '/admin/auth/changePassword',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 重置指定管理员的密码(超管操作)
|
||||
export function resetAdminPassword(data: { id: string; newPassword: string }) {
|
||||
return request<ApiResponse<void>>({
|
||||
url: '/admin/changePassword',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user