完成不同练习生成不同截图

This commit is contained in:
kron
2025-06-21 12:59:59 +08:00
parent c1148d6e51
commit a9f4f22622
13 changed files with 177 additions and 63 deletions

View File

@@ -78,8 +78,11 @@ export const createPractiseAPI = (arrows) => {
});
};
export const getPractiseAPI = (id) => {
return request("GET", `/user/practice/get?id=${id}`);
export const getPractiseAPI = async (id) => {
const result = await request("GET", `/user/practice/get?id=${id}`);
const data = { ...(result.UserPracticeRound || {}) };
if (data.arrows) data.arrows = JSON.parse(data.arrows);
return data;
};
export const createRoomAPI = (gameType, teamSize) => {