From 272be4d3d84e33cf1c9c84efb836327b5413a9eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Mon, 2 Oct 2023 06:33:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=8A=9F=E8=83=BD=E5=90=88?= =?UTF-8?q?=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/music.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/music.js b/public/music.js index 32b8c31..0189ff5 100644 --- a/public/music.js +++ b/public/music.js @@ -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) {