DEBUG: 修正移除时播放状态判断

This commit is contained in:
2023-10-02 22:09:54 +08:00
parent c8661e260c
commit 717f0d3e94
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ export default class MusicList {
}
async remove(item) {
this.ul.querySelector(`#${item.id}`)?.remove()
if (this.audio.paused) this.stop() // 停止播放
if (!this.audio.paused) this.stop() // 停止播放
this.event.onremove(item)
}
async load(item) {