Skip to content

Commit

Permalink
refactor: 删除多余事件
Browse files Browse the repository at this point in the history
  • Loading branch information
zonemeen committed Mar 15, 2024
1 parent c6b1b57 commit 14b3faa
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,6 @@
lrcType: 1,
audio: [],
})
this.player.on('listswitch', ({ index }) => {
if (this.isInitial) {
this.isInitial = false
return
}
this.activeId = this.player.list.audios[index].id
})
this.player.on('play', () => {
const { index } = this.player.list
this.activeId = this.player.list.audios[index].id
Expand Down

0 comments on commit 14b3faa

Please sign in to comment.