mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 11:24:17 +00:00
fix: 修复修改主题报错问题
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user