diff --git a/src/views/Player.vue b/src/views/Player.vue index eeaab348..6da6fb2e 100644 --- a/src/views/Player.vue +++ b/src/views/Player.vue @@ -52,10 +52,10 @@ export default { .sort(({ score: a }, { score: b }) => b - a) .sort(({ i: a }, { i: b }) => a - b) .map(({ uid, difficulty, platform, character_uid, elfin_uid, ...rest }) => { - const music = { ...this.allMusics[uid], ...this.allMusics[uid][this.lang] } + const music = { ...this.allMusics[uid], ...(this.allMusics[uid] || {})[this.lang] } const src = loadCover(music.cover) - const { name, author } = music - const lv = music.difficulty[difficulty] + const { name = uid, author } = music + const lv = (music.difficulty || {})[difficulty] const link = `/music/${uid}/${difficulty}/${platform}` const sumLink = `/music/${uid}/${difficulty}` const elfin = this.elfins[elfin_uid]