```
fix(Config): 注释掉设置卡片颜色的逻辑 将设置卡片颜色的相关代码注释掉,完全使用用户使用的颜色,避免在主题切换时出现异常。 ```
This commit is contained in:
@@ -127,9 +127,9 @@ watch(themeValue, (val: any) => {
|
|||||||
const selectedThemeDetail = daisyuiThemeList.value[val]
|
const selectedThemeDetail = daisyuiThemeList.value[val]
|
||||||
globalConfig.setTheme({ name: val, detail: selectedThemeDetail })
|
globalConfig.setTheme({ name: val, detail: selectedThemeDetail })
|
||||||
themeChange(val)
|
themeChange(val)
|
||||||
if (selectedThemeDetail.primary && (isHex(selectedThemeDetail.primary) || isRgbOrRgba(selectedThemeDetail.primary))) {
|
// if (selectedThemeDetail.primary && (isHex(selectedThemeDetail.primary) || isRgbOrRgba(selectedThemeDetail.primary))) {
|
||||||
globalConfig.setCardColor(selectedThemeDetail.primary)
|
// globalConfig.setCardColor(selectedThemeDetail.primary)
|
||||||
}
|
// }
|
||||||
}, { deep: true })
|
}, { deep: true })
|
||||||
|
|
||||||
watch(cardColorValue, (val: string) => {
|
watch(cardColorValue, (val: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user