新增获取游戏界面数据的API,并在Play.vue中处理登录成功后的游戏数据更新逻辑,优化状态管理和二维码处理流程。

This commit is contained in:
zyh
2025-08-26 23:11:13 +08:00
parent 41739f32a1
commit e3db781926
2 changed files with 99 additions and 18 deletions

View File

@@ -38,6 +38,11 @@ export function getGameProgress(code) {
})
}
// 获取游戏界面数据
export function getGameInterface(code) {
return http.get(`/api/link/${code}/game-interface`)
}
// 获取二维码图片(可选,用于代理二维码避免混合内容问题)
export function getQRCode(code) {
return http.get('/api/link/qr.png', {