DEBUG: 修正移除时播放状态判断
This commit is contained in:
parent
c8661e260c
commit
717f0d3e94
@ -122,7 +122,7 @@ export default class MusicList {
|
|||||||
}
|
}
|
||||||
async remove(item) {
|
async remove(item) {
|
||||||
this.ul.querySelector(`#${item.id}`)?.remove()
|
this.ul.querySelector(`#${item.id}`)?.remove()
|
||||||
if (this.audio.paused) this.stop() // 停止播放
|
if (!this.audio.paused) this.stop() // 停止播放
|
||||||
this.event.onremove(item)
|
this.event.onremove(item)
|
||||||
}
|
}
|
||||||
async load(item) {
|
async load(item) {
|
||||||
|
Loading…
Reference in New Issue
Block a user