From dadeda34fa46732522e7499a93e78f8125313c3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=8F=B6?= <1936472877@qq.com> Date: Wed, 1 Jan 2025 09:39:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=A8=E7=BA=BF=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=AD=97=E4=BD=93=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Render.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/Render.js b/components/Render.js index a62a762..0930717 100644 --- a/components/Render.js +++ b/components/Render.js @@ -424,9 +424,11 @@ async function renderCanvas (data, minLength) { if (i.descBgColor) { drawBackgroundColor(ctx, i.descBgColor, currentX, descY, ctx.measureText(i.desc).width + 10, 20, 10) + ctx.fillStyle = '#ffffff' + } else { + ctx.fillStyle = '#999' } - ctx.fillStyle = '#999' ctx.fillText(i.desc, currentX, descY) // 序号