修正移除音乐
This commit is contained in:
parent
b68826d590
commit
2ce424dc6b
@ -121,8 +121,7 @@ export default class MusicList {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
remove(item) {
|
remove(item) {
|
||||||
const el = this.ul.querySelector(`#${item.id}`)
|
this.ul.querySelector(`#${item.id}`)?.remove()
|
||||||
if (el) this.ul.removeChild()
|
|
||||||
this.stop() // 停止播放
|
this.stop() // 停止播放
|
||||||
// 执行回调函数
|
// 执行回调函数
|
||||||
if (this.EventListeners['remove']) {
|
if (this.EventListeners['remove']) {
|
||||||
|
Loading…
Reference in New Issue
Block a user