fix: keep lottery category active on refresh

This commit is contained in:
hajimi
2026-08-03 03:35:46 +08:00
parent 84e42cacec
commit 013a439c86
@@ -357,17 +357,10 @@ const switchGameCategory = (val: number) => {
}
const selectGame = (game: any) => {
if (selectedGameCode.value === game.code) {
selectedGameCode.value = ''
selectedGameName.value = ''
drawList.value = []
delete gameSelections.value[currentGameCategory.value]
} else {
selectedGameCode.value = game.code
selectedGameName.value = game.name
gameSelections.value[currentGameCategory.value] = { code: game.code, name: game.name }
fetchDrawList(true)
}
selectedGameCode.value = game.code
selectedGameName.value = game.name
gameSelections.value[currentGameCategory.value] = { code: game.code, name: game.name }
fetchDrawList(true)
saveSelections()
fetchLatest()
}