From a18026558560e0aa45019121bf443c6007e8234b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Tue, 29 Nov 2022 10:33:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/theme/color.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/theme/color.js b/src/utils/theme/color.js index e1f3ec3b5..00e62bad3 100644 --- a/src/utils/theme/color.js +++ b/src/utils/theme/color.js @@ -67,7 +67,7 @@ export function changeMenuColor(themeColors) { const elementStyle = document.documentElement.style const colors = Object.keys(themeColors).length > 0 ? themeColors : defaultThemeConfig - const colorValue = themeColors['--color-primary'].replace(/#/g, '') + const colorValue = colors['--color-primary'].replace(/#/g, '') const black = 'ffffff' const menuHoverColor = mix(black, colorValue, 96) elementStyle.setProperty('--menu-hover', menuHoverColor)