Ver Fonte

feat:修改主题设置

liu.shiyi há 1 ano atrás
pai
commit
3e3d4e0efd
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      data-room-ui/packages/js/utils/themeFormatting.js

+ 1 - 1
data-room-ui/packages/js/utils/themeFormatting.js

@@ -13,7 +13,7 @@ export function settingToTheme (config, type) {
   if (['dark', 'light'].includes(type)) {
     const theme = { dark: { ...config?.theme?.dark }, light: { ...config?.theme?.light } }
     config.setting.forEach((setItem) => {
-      if (['gradual', 'colorPicker'].includes(setItem.type)) {
+      if (['gradual', 'colorPicker', 'colorSelect'].includes(setItem.type)) {
         theme[type][setItem.field] = setItem.value
       }
     })