feat: 增加用户皮肤管理功能和Yggdrasil密码重置

- 在用户资料页面添加皮肤选择和管理功能,支持上传、配置和移除皮肤
- 实现Yggdrasil密码重置功能,用户可生成新密码并显示
- 优化皮肤展示和选择界面,增强用户体验
- 更新SkinViewer组件,支持跑步和跳跃动画
This commit is contained in:
lan
2025-12-04 22:33:46 +08:00
parent 5f90f48a1c
commit a9ff72a9bf
6 changed files with 879 additions and 295 deletions

View File

@@ -301,3 +301,15 @@ export async function updateAvatarUrl(avatarUrl: string): Promise<ApiResponse<{
return response.json();
}
// 重置Yggdrasil密码
export async function resetYggdrasilPassword(): Promise<ApiResponse<{
password: string;
}>> {
const response = await fetch(`${API_BASE_URL}/user/yggdrasil-password/reset`, {
method: 'POST',
headers: getAuthHeaders(),
});
return response.json();
}