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