From d75641c8b854b0acde0a019444e9325e550431da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Tue, 24 Oct 2023 05:10:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=B0=81=E9=9D=A2=E6=97=B6?= =?UTF-8?q?=E4=B9=9F=E6=98=BE=E7=A4=BA=E5=B0=81=E9=9D=A2=E5=8D=A0=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/music.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/music.js b/src/music.js index 6677523..c75f685 100644 --- a/src/music.js +++ b/src/music.js @@ -250,10 +250,14 @@ export default class MusicList { maxWidth: '100%', }, children: [ - ...(item.picture ? [Img({ - src: item.picture, - style: { width: '2em', height: '2em', borderRadius: '.25em' } - })] : []), + //...(item.picture ? [Img({ + // src: item.picture, + // style: { width: '2em', height: '2em', borderRadius: '.25em' } + //})] : []), + Img({ + src: item.picture || 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7', + style: { width: '2em', height: '2em', borderRadius: '.25em', backgroundColor: '#eee' }, + }), Span({ style: { flex: 1,