mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-01 15:11:16 +00:00
fix: 修复菜单颜色不变化问题
This commit is contained in:
parent
f4292796fc
commit
a3e97cb039
@ -71,7 +71,8 @@ export function mix(color_1, color_2, weight) {
|
||||
|
||||
export function changeSidebarColor(primary) {
|
||||
const elementStyle = document.documentElement.style
|
||||
const colors = defaultThemeConfig
|
||||
const themeInfo = store?.getters?.publicSettings?.INTERFACE?.theme_info?.colors || {}
|
||||
const colors = Object.keys(themeInfo).length > 0 ? themeInfo : defaultThemeConfig
|
||||
|
||||
for (const key in colors) {
|
||||
const currentColor = colors[key]
|
||||
|
Loading…
Reference in New Issue
Block a user