Преглед изворни кода

bugfix: phone mode does not show category search

close #5998
chenshuai2144 пре 5 година
родитељ
комит
ff50a2ea70
2 измењених фајлова са 4 додато и 2 уклоњено
  1. 1 2
      config/config.ts
  2. 3 0
      src/components/GlobalHeader/index.less

+ 1 - 2
config/config.ts

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

+ 3 - 0
src/components/GlobalHeader/index.less

@@ -96,5 +96,8 @@
         margin-right: 0;
       }
     }
+    .search {
+      display: none;
+    }
   }
 }