Skip to content

Commit

Permalink
missing music
Browse files Browse the repository at this point in the history
  • Loading branch information
simon300000 committed Aug 2, 2024
1 parent 3695f9d commit ca3bd74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/Player.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ca3bd74

Please sign in to comment.