From b420d48aaf1f2e695ba1d2ef31ac2a034e04b58e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Sun, 1 Oct 2023 18:49:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E9=80=81=E5=88=97=E8=A1=A8=E6=97=B6?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E6=B2=A1=E6=9C=89=E6=95=B0=E6=8D=AE=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index bdc0acc..5838104 100644 --- a/public/index.html +++ b/public/index.html @@ -96,10 +96,11 @@ onmessage: async (event, client) => { const { type, id, channel, list } = JSON.parse(event.data) if (type === 'get_music_list') { - console.log(client.name, '请求音乐列表:', musicList.list) + const ms = musicList.list.filter(item => item.arrayBuffer) + console.log(client.name, '请求音乐列表:', ms) clientList.send('base', JSON.stringify({ type: 'set_music_list', - list: musicList.list.map(({ id, name, size, type }) => ({ id, name, size, type })) + list: ms.map(({ id, name, size, type }) => ({ id, name, size, type })) })) return }