fix
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2025-10-27 18:33:55 +08:00
parent 9ff9c7ae54
commit bd414cfc3f
2 changed files with 21 additions and 6 deletions

View File

@@ -351,8 +351,8 @@ export function updateProblemSetProgress(
}
// 获取用户徽章列表
export function getUserBadges() {
return http.get("user/badges")
export function getUserBadges(username?: string) {
return http.get("user/badges", { params: username ? { username } : {} })
}
// 获取题单徽章列表