DEBUG: 用户加入离开避免影响音乐播放
This commit is contained in:
@@ -304,7 +304,7 @@ export default class MusicList {
|
||||
}
|
||||
async remove(item) {
|
||||
this.ul.querySelector(`#${item.id}`)?.remove()
|
||||
if (!this.audio.paused) this.stop() // 停止播放
|
||||
if (!this.audio.paused && item.id === this.playing?.id) this.stop() // 停止播放
|
||||
this.list = this.list.filter(i => i.id !== item.id)
|
||||
this.event.onremove(item)
|
||||
}
|
||||
|
Reference in New Issue
Block a user