feat: 增加用户皮肤管理功能和Yggdrasil密码重置
- 在用户资料页面添加皮肤选择和管理功能,支持上传、配置和移除皮肤 - 实现Yggdrasil密码重置功能,用户可生成新密码并显示 - 优化皮肤展示和选择界面,增强用户体验 - 更新SkinViewer组件,支持跑步和跳跃动画
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user