fix: 修复菜单颜色不变化问题

This commit is contained in:
“huailei000” 2022-07-06 19:48:39 +08:00 committed by huailei
parent f4292796fc
commit a3e97cb039

View File

@ -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]