功能完善

This commit is contained in:
kron
2025-06-15 15:53:57 +08:00
parent 7ac84a6129
commit 448f88a77e
21 changed files with 424 additions and 178 deletions

View File

@@ -72,6 +72,10 @@ export const createPractiseAPI = (arrows) => {
});
};
export const getPractiseAPI = (id) => {
return request("GET", `/user/practice/get?id=${id}`);
};
export const createRoomAPI = (gameType, teamSize) => {
return request("POST", "/user/createroom", {
gameType,
@@ -207,6 +211,5 @@ export const getBattleListAPI = async (page, battleType) => {
.sort((a, b) => b.totalScore - a.totalScore),
});
});
console.log(1111, result);
return data;
};