按钮功能合并

This commit is contained in:
2023-10-02 06:33:11 +08:00
parent 0fc8dc3f67
commit 272be4d3d8
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,6 @@ export default class MusicList {
if (item.arrayBuffer) {
event.target.innerText = '喜欢'
this.unlike(item)
this.remove(item)
} else {
event.target.innerText = '移除'
this.ul.querySelector(`#${item.id}`).classList.add('cache')
@ -159,6 +158,7 @@ export default class MusicList {
this.event.onlike(item, this.list)
}
async unlike(item) {
this.remove(item)
this.event.onunlike(item, this.list)
}
async ban(item) {