not good
getApiParamsGameCode () {
let currentGameItem = this.currentGameList[this.currentGameCategory].filter((item) => {
return item.gameId === this.currentGameId
})
const [{ gameCode }] = currentGameItem
return gameCode
}
good
getApiParamsGameCode (currentGameCategory, curGameId) {
let currentGameItem = this.currentGameList[currentGameCategory].filter((item) => {
return item.gameId === curGameId
})
const [{ gameCode }] = currentGameItem
return gameCode
}