소스 검색

feat:修改主题设置

liu.shiyi 1 년 전
부모
커밋
3e3d4e0efd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
       }
     })