跳转页 游戏名显示中文

This commit is contained in:
yulixing 2019-09-26 14:04:52 +08:00
parent 1bc8a1e4fb
commit 881e595226

View File

@ -45,7 +45,7 @@
<el-option <el-option
v-for="(item, index) in gameList" v-for="(item, index) in gameList"
:key="index" :key="index"
:label="item.game_name" :label="item.game"
:value="item.game_id" :value="item.game_id"
/> />
</el-select> </el-select>
@ -189,7 +189,7 @@
<el-option <el-option
v-for="(item, index) in modalOpt.game" v-for="(item, index) in modalOpt.game"
:key="index" :key="index"
:label="item.game_name" :label="item.game"
:value="item.game_id" :value="item.game_id"
/> />
</el-select> </el-select>
@ -298,7 +298,7 @@ export default {
// //
this.platformList = this.allGame.map(item => { this.platformList = this.allGame.map(item => {
this.showName.game[item.game_id] = item.game_name this.showName.game[item.game_id] = item.game
return `${item.platform_id}-${item.platform_name}` return `${item.platform_id}-${item.platform_name}`
}) })
this.platformList = [...new Set(this.platformList)] this.platformList = [...new Set(this.platformList)]