From ca3bd74647c458128b8251d3df1a42b9549c4e15 Mon Sep 17 00:00:00 2001 From: simon3000 Date: Fri, 2 Aug 2024 21:37:55 +0200 Subject: [PATCH] missing music --- src/views/Player.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]