From 56a14672796a8150d0cd4dd22c99fe04ddde7494 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 28 Apr 2026 09:54:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=99=BB=E5=BD=95):=20=E9=BC=A0=E6=A0=87?= =?UTF-8?q?=E7=A7=BB=E4=B8=8A=E6=8C=89=E9=94=AE=E8=83=8C=E6=99=AF=E6=B6=88?= =?UTF-8?q?=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot --- core/core-frontend/src/utils/color.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/core-frontend/src/utils/color.ts b/core/core-frontend/src/utils/color.ts index f16f4f5269..d5df4b2810 100644 --- a/core/core-frontend/src/utils/color.ts +++ b/core/core-frontend/src/utils/color.ts @@ -64,9 +64,7 @@ export const mixColor = (color1: string, color2: string, weight: number) => { parseInt(color1.substring(4, 6), 16) * weight + parseInt(color2.substring(4, 6), 16) * (1 - weight) ) - return `# - ${r.toString(16).padStart(2, '0')} - ${g.toString(16).padStart(2, '0')} - ${b.toString(16).padStart(2, '0')} - ` + return `#${r.toString(16).padStart(2, '0')}${g.toString(16).padStart(2, '0')}${b + .toString(16) + .padStart(2, '0')}` }