瀏覽代碼

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)) {
   if (['dark', 'light'].includes(type)) {
     const theme = { dark: { ...config?.theme?.dark }, light: { ...config?.theme?.light } }
     const theme = { dark: { ...config?.theme?.dark }, light: { ...config?.theme?.light } }
     config.setting.forEach((setItem) => {
     config.setting.forEach((setItem) => {
-      if (['gradual', 'colorPicker'].includes(setItem.type)) {
+      if (['gradual', 'colorPicker', 'colorSelect'].includes(setItem.type)) {
         theme[type][setItem.field] = setItem.value
         theme[type][setItem.field] = setItem.value
       }
       }
     })
     })