style(X-Pack): 系统设置-外观配置切换主题色后按钮hover状态颜色错误

This commit is contained in:
fit2cloud-chenyw 2024-04-02 19:52:30 +08:00
parent e4796e77d4
commit d413899fad

View File

@ -160,6 +160,12 @@ export const useAppearanceStore = defineStore('appearanceStore', {
)
} else if (document.documentElement.style.getPropertyValue('--ed-color-primary')) {
document.documentElement.style.setProperty('--ed-color-primary', '#3370FF')
document.documentElement.style.removeProperty('--ed-color-primary-light-3')
document.documentElement.style.removeProperty('--ed-color-primary-light-5')
document.documentElement.style.removeProperty('--ed-color-primary-1a')
document.documentElement.style.removeProperty('--ed-color-primary-33')
document.documentElement.style.removeProperty('--ed-color-primary-99')
document.documentElement.style.removeProperty('--ed-color-primary-dark-2')
}
this.bg = data.bg
this.login = data.login