소스 검색

bugfix: default the property of primarycolor

close #6002
chenshuai2144 5 년 전
부모
커밋
4c9aa88004
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      config/config.ts

+ 2 - 0
config/config.ts

@@ -4,6 +4,7 @@ import slash from 'slash2';
 import themePluginConfig from './themePluginConfig';
 import proxy from './proxy';
 import webpackPlugin from './plugin.config';
+import { primaryColor } from './defaultSettings';
 
 const { pwa } = defaultSettings;
 
@@ -144,6 +145,7 @@ export default {
   // Theme for antd: https://ant.design/docs/react/customize-theme-cn
   theme: {
     // ...darkTheme,
+    primaryColor,
   },
   define: {
     REACT_APP_ENV: REACT_APP_ENV || false,