游戏陪玩用户-保存-兼容游戏未配置

This commit is contained in:
khalil
2024-07-19 12:14:51 +08:00
parent 89c27b28e7
commit af1d94c1f2

View File

@@ -390,7 +390,7 @@ export default {
function setUserModal (data) {
modalData = {
uid: data.uid, erbanNo: data.erbanNo,
games: Object.assign([], data.games.map(game => { return { gameId: game.gameId, price: game.price, proficiency: game.proficiency, tags: Object.assign([], game.tags) } }))
games: Object.assign([], data.games ? data.games.map(game => { return { gameId: game.gameId, price: game.price, proficiency: game.proficiency, tags: Object.assign([], game.tags) } }) : [])
};
freshUserModal();
}