fix(登录): 鼠标移上按键背景消失

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
dataeaseShu
2026-04-28 09:54:33 +08:00
committed by dataeaseShu
parent bd38c65905
commit 56a1467279

View File

@@ -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')}`
}